File tree 3 files changed +125
-19
lines changed
3 files changed +125
-19
lines changed Original file line number Diff line number Diff line change 2
2
inputs ,
3
3
cell ,
4
4
} : let
5
- inherit ( inputs ) agenix sops-nix nixpkgs home-manager ;
5
+ inherit ( inputs ) agenix sops-nix mac-app-util nixpkgs home-manager ;
6
6
inherit ( inputs . cells . users ) users ;
7
7
inherit ( cell . home ) home ;
8
+ baseModules = [ agenix . homeManagerModules . age sops-nix . homeManagerModules . sops home ] ;
9
+ darwinModules =
10
+ if nixpkgs . stdenv . hostPlatform . isDarwin
11
+ then [ mac-app-util . homeManagerModules . default ]
12
+ else [ ] ;
8
13
f = _ : user :
9
14
home-manager . lib . homeManagerConfiguration {
10
15
pkgs = nixpkgs ;
11
- modules = [ agenix . homeManagerModules . age sops-nix . homeManagerModules . sops home ] ;
16
+ modules = baseModules ++ darwinModules ;
12
17
extraSpecialArgs = { inherit user ; } ;
13
18
} ;
14
19
in { default = builtins . mapAttrs f users ; }
Original file line number Diff line number Diff line change 17
17
url = "github:numtide/devshell" ;
18
18
inputs . nixpkgs . follows = "nixpkgs" ;
19
19
} ;
20
+ mac-app-util . url = "github:hraban/mac-app-util" ;
20
21
nixago = {
21
22
url = "github:nix-community/nixago" ;
22
23
inputs . nixpkgs . follows = "nixpkgs" ;
You can’t perform that action at this time.
0 commit comments