nichts/hosts/default.nix

54 lines
969 B
Nix
Raw Normal View History

2024-07-21 20:14:19 +02:00
{
inputs,
withSystem,
...
}: let
2024-04-10 17:56:10 +02:00
inherit (inputs) self;
2024-07-21 20:14:19 +02:00
inherit (inputs.nixpkgs) lib;
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 {
2024-07-21 20:14:19 +02:00
temperance = mkSystem {
inherit withSystem;
2024-04-10 17:56:10 +02:00
system = "x86_64-linux";
2024-04-10 19:21:46 +02:00
modules = [
2024-05-23 11:38:43 +02:00
./vali/temperance
../modules
inputs.home-manager.nixosModules.home-manager
];
};
2024-07-21 20:14:19 +02:00
2024-07-21 21:58:18 +02:00
hermit = mkSystem {
inherit withSystem;
2024-05-23 11:38:43 +02:00
system = "x86_64-linux";
modules = [
./vali/hermit
../modules
inputs.home-manager.nixosModules.home-manager
2024-04-10 19:21:46 +02:00
];
2024-04-10 17:56:10 +02:00
};
2024-04-10 17:56:53 +02:00
}