nixos/flake/nixos.nix

39 lines
763 B
Nix
Raw Normal View History

2025-05-03 11:35:18 +08:00
{
inputs,
lib,
self,
rootPath,
...
}: let
inherit (self) outputs;
in {
2025-05-03 11:35:18 +08:00
flake = {
2025-07-01 23:17:40 +08:00
nixosModules = {
default = import (rootPath + "/nixos/modules/top-level");
gui = import (rootPath + "/nixos/modules/top-level/gui.nix");
};
nixosConfigurations = let
makeNixosConfiguration = hostName:
lib.nixosSystem {
modules = [(rootPath + "/nixos/configurations/${hostName}")];
specialArgs = {
inherit
inputs
outputs
rootPath
lib
;
2025-05-03 11:35:18 +08:00
};
};
in
with lib;
pipe
[
"Tytonidae"
"Cape"
"Akun"
]
[(flip genAttrs makeNixosConfiguration)];
2025-05-03 11:35:18 +08:00
};
}