refractor shell configurations with flake-parts

This commit is contained in:
Danilo Reyes
2025-10-12 13:51:45 -06:00
parent 6f97b24115
commit 11fd8e0440
5 changed files with 34 additions and 44 deletions

View File

@@ -192,6 +192,12 @@ in
|> builtins.filter (
name: !(lib.hasPrefix "wg-" name) && name != "vps" && name != "router" && name != hostName
);
shellConditional = shellType: bashContent: zshContent:
if shellType == "bash" then
{ initExtra = bashContent; }
else
{ initContent = zshContent; };
mergeAliases = baseAliases: extraAliases: baseAliases // extraAliases;
};
};
}