nix-da/hosts/default.nix
nydragon eb591d4b9c
Some checks failed
/ test (push) Failing after 2s
chore: switch marr over to hjem
2025-02-24 20:10:44 +01:00

66 lines
1.5 KiB
Nix

{ inputs, withSystem, ... }:
let
inherit (inputs.self.lib.my) mkSystem;
inherit (inputs.self.lib) listToAttrs;
mkSystem' = sys: {
name = sys.hostname;
value = mkSystem ({ inherit withSystem; } // sys);
};
username = "ny";
in
{
flake.nixosConfigurations = listToAttrs [
(mkSystem' {
inherit username;
hostname = "marr";
system = "x86_64-linux";
extraModules = [
inputs.disko.nixosModules.disko
inputs.agenix.nixosModules.default
inputs.hjem.nixosModules.default
inputs.hjem-rum.nixosModules.default
];
})
(mkSystem' {
inherit username;
hostname = "brontes";
system = "x86_64-linux";
extraModules = [
inputs.agenix.nixosModules.default
inputs.hjem.nixosModules.default
inputs.hjem-rum.nixosModules.default
];
})
(mkSystem' {
inherit username;
hostname = "shan";
system = "x86_64-linux";
extraModules = [
inputs.disko.nixosModules.disko
inputs.agenix.nixosModules.default
];
})
(mkSystem' {
inherit username;
hostname = "raptus";
system = "x86_64-linux";
extraModules = [
inputs.disko.nixosModules.disko
inputs.agenix.nixosModules.default
];
})
(mkSystem' {
inherit username;
hostname = "nihilus";
system = "aarch64-linux";
extraModules = [
inputs.nixos-hardware.nixosModules.raspberry-pi-4
];
})
];
}