nichts/hosts/default.nix

72 lines
1.5 KiB
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';
inherit system;
}
(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
inputs.agenix.nixosModules.default
2024-07-21 13:18:00 +02:00
inputs.lix-module.nixosModules.default
2024-05-23 11:38:43 +02:00
];
};
2024-07-21 20:14:19 +02:00
# temperance =
# lib.nixosSystem rec {
# system = "x86_64-linux";
# specialArgs = {
# inherit lib;
# inherit
# inputs
# self
# system
# ;
# };
# });
2024-07-10 22:10:54 +02:00
hermit = lib.nixosSystem rec {
2024-05-23 11:38:43 +02:00
system = "x86_64-linux";
2024-07-10 22:10:54 +02:00
specialArgs = {inherit lib inputs self system;};
2024-05-23 11:38:43 +02:00
modules = [
./vali/hermit
../modules
inputs.home-manager.nixosModules.home-manager
inputs.agenix.nixosModules.default
2024-07-07 13:23:38 +02:00
inputs.lix-module.nixosModules.default
inputs.nixos-hardware.nixosModules.dell-xps-15-7590-nvidia
2024-04-10 19:21:46 +02:00
];
2024-04-10 17:56:10 +02:00
};
2024-04-10 17:56:53 +02:00
}