-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.nix
43 lines (42 loc) · 1.13 KB
/
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
41
42
43
{
username,
homeDirectory,
stateVersion,
system,
workMachine,
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
# (import ./nixpkgs/node { inherit pkgs system; })
(import ./tmux.nix)
(import ./packages.nix { inherit workMachine; } )
# (import ./programs.nix {
# inherit workMachine;
# isDarwin = systemMatchesPredicate system "isDarwin";
# })
]
++ ( lib.optionals (systemMatchesPredicate system "isDarwin") [./darwin.nix] )
++ ( lib.optionals workMachine [./work.nix] );
# ++ (
# 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;};
}