-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflake.nix
42 lines (40 loc) · 1.21 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
description = "Home Manager configuration";
inputs = {
nixpkgs.url = "nixpkgs/release-24.11";
nixpkgs-unstable.url = "nixpkgs/nixpkgs-unstable"; # TODO Enable both stable and unstable
nix-darwin = {
url = "github:LnL7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager/release-24.11";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { home-manager, nix-darwin, nixpkgs-unstable, ... }:
{
darwinConfigurations."HKs-MacBook-Air" = nix-darwin.lib.darwinSystem {
system = "aarch64-darwin";
specialArgs = {
pkgsUnstable = import nixpkgs-unstable {
system = "aarch64-darwin";
};
};
modules = [
./darwin.nix
home-manager.darwinModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.hkscarf = import ./home.nix;
home-manager.extraSpecialArgs = {
pkgsUnstable = nixpkgs-unstable {
system = "aarch64-darwin";
};
};
}
];
};
};
}