nix-conf/systems/default.nix

38 lines
1 KiB
Nix
Raw Permalink Normal View History

2024-07-10 23:02:54 +02:00
{
self,
nixpkgs,
inputs,
}:
2024-01-13 17:29:03 +01:00
2024-01-13 17:37:47 +01:00
let
2024-08-24 09:44:21 +02:00
inherit (nixpkgs.lib.systems.parse) doubleFromSystem mkSystemFromString;
2024-07-10 23:02:54 +02:00
mkSystem =
systemConfig: name:
nixpkgs.lib.nixosSystem rec {
2024-08-24 09:44:21 +02:00
system = doubleFromSystem (mkSystemFromString systemConfig);
2024-07-10 23:02:54 +02:00
specialArgs = inputs;
modules = [
./${name}
self.outputs.nixosModules.default
{
system.stateVersion = "24.05";
nixpkgs.hostPlatform = {
system = system;
config = systemConfig;
};
networking.hostName = name;
}
];
};
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
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-01-13 17:29:03 +01:00
}