feat: Remove |> op from config to disable pipe-operator feature
This commit is contained in:
parent
b418f7ca4b
commit
0bdc1f142c
12 changed files with 167 additions and 121 deletions
|
|
@ -39,16 +39,20 @@ in
|
|||
};
|
||||
config = {
|
||||
flake.deploy.nodes =
|
||||
[
|
||||
"Cape"
|
||||
"Akun"
|
||||
]
|
||||
|> map (
|
||||
hostName:
|
||||
mkDeployNode {
|
||||
inherit hostName;
|
||||
}
|
||||
)
|
||||
|> lib.foldr (a: b: a // b) { };
|
||||
with lib;
|
||||
pipe
|
||||
[
|
||||
"Cape"
|
||||
"Akun"
|
||||
]
|
||||
[
|
||||
(map (
|
||||
hostName:
|
||||
mkDeployNode {
|
||||
inherit hostName;
|
||||
}
|
||||
))
|
||||
(foldr (a: b: a // b) { })
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,18 +9,20 @@ let
|
|||
inherit (self) outputs;
|
||||
homeModules =
|
||||
(
|
||||
(rootPath + "/home")
|
||||
|> builtins.readDir
|
||||
|> lib.filterAttrs (_key: value: value == "directory")
|
||||
|> lib.filterAttrs (
|
||||
key: _value:
|
||||
!builtins.elem key [
|
||||
"modules"
|
||||
"extra"
|
||||
]
|
||||
)
|
||||
|> builtins.attrNames
|
||||
|> (with lib; flip genAttrs (name: import (rootPath + "/home/${name}/modules")))
|
||||
with lib;
|
||||
pipe (rootPath + "/home") [
|
||||
builtins.readDir
|
||||
(filterAttrs (_key: value: value == "directory"))
|
||||
(filterAttrs (
|
||||
key: _value:
|
||||
!builtins.elem key [
|
||||
"modules"
|
||||
"extra"
|
||||
]
|
||||
))
|
||||
builtins.attrNames
|
||||
(flip genAttrs (name: import (rootPath + "/home/${name}/modules")))
|
||||
]
|
||||
)
|
||||
// {
|
||||
default = import "${toString rootPath}/home/modules";
|
||||
|
|
@ -69,12 +71,15 @@ let
|
|||
in
|
||||
{
|
||||
flake = {
|
||||
homeConfigurations = lib.foldr (a: b: a // b) { } (
|
||||
[
|
||||
# Hostname
|
||||
]
|
||||
|> map (hostName: makeHomeConfiguration { inherit hostName; })
|
||||
);
|
||||
homeConfigurations =
|
||||
with lib;
|
||||
foldr (a: b: a // b) { } (
|
||||
pipe
|
||||
[
|
||||
# Hostname
|
||||
]
|
||||
[ (map (hostName: makeHomeConfiguration { inherit hostName; })) ]
|
||||
);
|
||||
inherit homeModules;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,11 +30,13 @@ in
|
|||
};
|
||||
};
|
||||
in
|
||||
[
|
||||
"Tytonidae"
|
||||
"Cape"
|
||||
"Akun"
|
||||
]
|
||||
|> (with lib; flip genAttrs makeNixosConfiguration);
|
||||
with lib;
|
||||
pipe
|
||||
[
|
||||
"Tytonidae"
|
||||
"Cape"
|
||||
"Akun"
|
||||
]
|
||||
[ (flip genAttrs makeNixosConfiguration) ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,9 +11,11 @@ let
|
|||
in
|
||||
{
|
||||
flake.overlays =
|
||||
[
|
||||
"modifications"
|
||||
"additions"
|
||||
]
|
||||
|> (with lib; flip genAttrs (name: importWithArgs (rootPath + "/overlays/${name}")));
|
||||
with lib;
|
||||
pipe
|
||||
[
|
||||
"modifications"
|
||||
"additions"
|
||||
]
|
||||
[ (flip genAttrs (name: importWithArgs (rootPath + "/overlays/${name}"))) ];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue