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 {
|
2024-01-19 13:42:27 +01:00
|
|
|
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";
|
2024-07-02 13:34:55 +02:00
|
|
|
omoikane = mkSystem "x86_64-unknown-linux-gnu" "omoikane";
|
2024-02-01 17:53:39 +01:00
|
|
|
yokai = mkSystem "aarch64-unknown-linux-gnu" "yokai";
|
2024-01-15 19:56:37 +01:00
|
|
|
sukuna-biko-na = mkSystem "aarch64-unknown-linux-gnu" "sukuna-biko-na";
|
|
|
|
benzaiten = mkSystem "x86_64-unknown-linux-gnu" "benzaiten";
|
2024-01-19 13:42:27 +01:00
|
|
|
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";
|
2024-04-15 07:48:41 +02:00
|
|
|
pi4 = mkSystem "aarch64-unknown-linux-gnu" "pi4";
|
2024-04-20 16:13:14 +02:00
|
|
|
raspberry4 = mkSystem "aarch64-unknown-linux-gnu" "raspberry4";
|
2024-01-13 17:29:03 +01:00
|
|
|
}
|