refractor shell configurations with flake-parts
This commit is contained in:
@@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user