-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.nix
40 lines (39 loc) · 891 Bytes
/
home.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
{
username,
homeDirectory,
stateVersion,
profile,
system,
mainlyRemote,
home-manager,
}: {
pkgs,
lib,
...
}: let
systemMatchesPredicate = system: predicate:
lib.systems.inspect.predicates."${predicate}" (lib.systems.parse.mkSystemFromString "${system}");
in {
imports =
[
(import ./dotfiles.nix {inherit username profile;})
./fonts.nix
./packages.nix
(import ./programs.nix {
inherit mainlyRemote;
isDarwin = systemMatchesPredicate system "isDarwin";
})
]
++ (
lib.optionals (systemMatchesPredicate system "isLinux")
[
(import ./node.nix {inherit home-manager;})
./systemd.nix
]
)
++ (
lib.optionals (systemMatchesPredicate system "isDarwin")
[(import ./mac.nix {inherit username;})]
);
home = {inherit username homeDirectory stateVersion;};
}