nichts/hosts/default.nix

55 lines
977 B
Nix
Raw Normal View History

2024-07-21 20:14:19 +02:00
{
inputs,
lib,
2024-07-21 20:14:19 +02:00
withSystem,
...
}: let
inherit (inputs) self;
2024-07-21 20:14:19 +02:00
inherit (inputs.nixpkgs) lib;
# inherit (lib.builders) mkSystem;
mkSystem = {
withSystem,
system,
...
} @ args:
withSystem system (
{
inputs',
self',
...
}:
lib.nixosSystem {
inherit system;
specialArgs =
lib.recursiveUpdate
{
inherit lib;
inherit inputs inputs';
inherit self self';
}
(args.specialArgs or {});
inherit (args) modules;
}
);
2024-04-10 17:56:10 +02:00
in {
flake.nixosConfigurations = {
temperance = mkSystem {
inherit withSystem;
system = "x86_64-linux";
modules = [
./vali/temperance
../modules
];
};
2024-07-21 20:14:19 +02:00
hermit = mkSystem {
inherit withSystem;
system = "x86_64-linux";
modules = [
./vali/hermit
../modules
];
};
2024-04-10 17:56:10 +02:00
};
2024-04-10 17:56:53 +02:00
}