per host nix modules by user
This commit is contained in:
parent
8975b5cc3c
commit
5291ac3b47
26 changed files with 23 additions and 4 deletions
|
@ -13,18 +13,23 @@
|
|||
enable = true;
|
||||
};
|
||||
|
||||
imports = ylib.umport {
|
||||
path = lib.fileset.maybeMissing ./by_hosts/${settings.system.hostname}/nix_modules;
|
||||
recursive = true;
|
||||
};
|
||||
|
||||
home-manager.users.${settings.user.username} = {
|
||||
imports =
|
||||
# Common settings all users share
|
||||
[ (settings.usersDir + "/_common/home.nix") ]
|
||||
# Programs
|
||||
++ ylib.umport {
|
||||
path = ./programs;
|
||||
path = ./home_manager;
|
||||
recursive = true;
|
||||
}
|
||||
# Programs by host
|
||||
++ ylib.umport {
|
||||
path = lib.fileset.maybeMissing ./by_hosts/${settings.system.hostname};
|
||||
path = lib.fileset.maybeMissing ./by_hosts/${settings.system.hostname}/home_manager;
|
||||
recursive = true;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue