mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-04 10:16:33 +01:00
30 lines
982 B
Nix
30 lines
982 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";
|
|
hetzner = mkSystem "x86_64-unknown-linux-gnu" "hetzner";
|
|
zap = mkSystem "x86_64-unknown-linux-gnu" "zap";
|
|
}
|