feat: split hm user base by host type and remove nvim secret
This commit is contained in:
+3
-5
@@ -68,6 +68,7 @@ let
|
||||
primaryEmails = lib.filter (email: email.primary) (builtins.attrValues account.emails);
|
||||
isWorkstation = config.meta.host.kind == "workstation";
|
||||
hasWorkstationModule = builtins.hasAttr workstationModuleName homeModules;
|
||||
baseModuleName = if isWorkstation then "workstation-user-base" else "server-user-base";
|
||||
in
|
||||
{
|
||||
assertions = [
|
||||
@@ -99,8 +100,10 @@ let
|
||||
|
||||
home-manager.users.${name} = {
|
||||
imports = [
|
||||
homeModules.${baseModuleName}
|
||||
homeModules.${userModuleName}
|
||||
]
|
||||
++ extraHomeImports
|
||||
++ lib.optionals (isWorkstation && hasWorkstationModule) [
|
||||
homeModules.${workstationModuleName}
|
||||
];
|
||||
@@ -122,11 +125,6 @@ let
|
||||
homeDirectory = account.homeDirectory;
|
||||
stateVersion = "24.05";
|
||||
};
|
||||
|
||||
imports = [
|
||||
homeModules."user-base"
|
||||
]
|
||||
++ extraHomeImports;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user