nixos/flake/nixos.nix
ulic-youthlic 6a7b5838bc
Some checks are pending
Test Cachix / tests (Akun) (push) Waiting to run
Test Cachix / tests (Cape) (push) Waiting to run
Test Cachix / tests (Tytonidae) (push) Waiting to run
fix: Remove |> operator to fix ci
2025-11-08 00:12:48 +08:00

42 lines
807 B
Nix

{
inputs,
lib,
self,
rootPath,
...
}:
let
inherit (self) outputs;
in
{
flake = {
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
;
};
};
in
with lib;
pipe
[
"Tytonidae"
"Cape"
"Akun"
]
[ (flip genAttrs makeNixosConfiguration) ];
};
}