nix-conf/systems/default.nix
2024-01-15 19:56:37 +01:00

28 lines
870 B
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";
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";
}