Simplify home profile activation by folding it into the tags logic
This commit is contained in:
parent
b3ba7481d8
commit
3398c611b7
27 changed files with 74 additions and 216 deletions
|
@ -40,8 +40,15 @@
|
|||
uid = 1000;
|
||||
};
|
||||
|
||||
# Import hm config, enable profiles based on system tags
|
||||
home-manager.users."${config.vars.mainUser}" = {
|
||||
imports = [ ../../../home ];
|
||||
home.stateVersion = lib.mkForce config.system.stateVersion;
|
||||
home = {
|
||||
desktop.enable = builtins.elem "pc" config.system.nixos.tags;
|
||||
gaming.enable = builtins.elem "gaming" config.system.nixos.tags;
|
||||
production.enable = builtins.elem "production" config.system.nixos.tags;
|
||||
school.enable = builtins.elem "school" config.system.nixos.tags;
|
||||
stateVersion = lib.mkForce config.system.stateVersion;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue