nix-conf/systems/default.nix
2024-07-10 23:02:54 +02:00

49 lines
1.3 KiB
Nix

{
self,
nixpkgs,
inputs,
}:
let
mkSystem =
systemConfig: name:
nixpkgs.lib.nixosSystem rec {
system =
builtins.replaceStrings
[
"-unknown-"
"-gnu"
]
[
"-"
""
]
systemConfig;
specialArgs = inputs;
modules = [
./${name}
self.outputs.nixosModules.default
{
system.stateVersion = "24.05";
nixpkgs.hostPlatform = {
system = system;
config = systemConfig;
};
networking.hostName = name;
}
];
};
in
{
kuraokami = mkSystem "x86_64-unknown-linux-gnu" "kuraokami";
omoikane = mkSystem "x86_64-unknown-linux-gnu" "omoikane";
yokai = mkSystem "aarch64-unknown-linux-gnu" "yokai";
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";
hetzner = mkSystem "x86_64-unknown-linux-gnu" "hetzner";
zap = mkSystem "x86_64-unknown-linux-gnu" "zap";
pi4 = mkSystem "aarch64-unknown-linux-gnu" "pi4";
raspberry4 = mkSystem "aarch64-unknown-linux-gnu" "raspberry4";
}