nix-conf/systems/default.nix

31 lines
982 B
Nix
Raw Normal View History

2024-01-13 17:29:03 +01:00
{ self, nixpkgs, inputs }:
2024-01-13 17:37:47 +01:00
let
2024-01-15 19:56:37 +01:00
mkSystem = systemConfig: name: nixpkgs.lib.nixosSystem rec {
system = builtins.replaceStrings ["-unknown-" "-gnu"] ["-" ""] systemConfig;
2024-01-13 17:29:03 +01:00
specialArgs = inputs;
modules = [
2024-01-15 19:56:37 +01:00
./${name}
2024-01-13 17:29:03 +01:00
self.outputs.nixosModules.default
2024-01-15 19:56:37 +01:00
{
system.stateVersion = "24.05";
nixpkgs.hostPlatform = {
system = system;
config = systemConfig;
};
networking.hostName = name;
}
2024-01-13 17:29:03 +01:00
];
};
2024-01-13 17:37:47 +01:00
in
{
2024-01-15 19:56:37 +01:00
kuraokami = mkSystem "x86_64-unknown-linux-gnu" "kuraokami";
jurojin = mkSystem "aarch64-unknown-linux-gnu" "jurojin";
sukuna-biko-na = mkSystem "aarch64-unknown-linux-gnu" "sukuna-biko-na";
benzaiten = mkSystem "x86_64-unknown-linux-gnu" "benzaiten";
kamimusubi = mkSystem "x86_64-unknown-linux-gnu" "kamimusubi";
ebisu = mkSystem "x86_64-unknown-linux-gnu" "ebisu";
2024-01-18 20:12:43 +01:00
hetzner = mkSystem "x86_64-unknown-linux-gnu" "hetzner";
zap = mkSystem "x86_64-unknown-linux-gnu" "zap";
2024-01-13 17:29:03 +01:00
}