flake/systems/default.nix
uku 7558e4b431
fix(systems/mottarone): the horrors.
alternatively, rollback nixpkgs to before the latest staging merge.
something (gtk3 or something depending on it) broke jaspersoft studio
and well i need that to work
2025-03-05 17:15:24 +01:00

69 lines
1.1 KiB
Nix

{
lib,
inputs,
...
}:
let
mkUtils = import ../global/utils.nix;
toSystem =
name:
{
role,
system,
nixpkgs ? inputs.nixpkgs,
}:
nixpkgs.lib.nixosSystem {
inherit system;
modules = [
./${name}
./${name}/hardware-configuration.nix
../configs/${role}.nix
{ networking.hostName = name; }
];
specialArgs = inputs // {
inherit nixpkgs;
_utils = mkUtils {
inherit lib;
pkgs = nixpkgs.legacyPackages.${system};
};
};
};
in
{
flake.nixosConfigurations = lib.mapAttrs toSystem {
fuji = {
role = "desktop";
system = "x86_64-linux";
};
fuji-wsl = {
role = "client";
system = "x86_64-linux";
};
kilimandjaro = {
role = "laptop";
system = "x86_64-linux";
};
mottarone = {
role = "laptop";
system = "x86_64-linux";
nixpkgs = inputs.nixpkgs-mottarone;
};
etna = {
role = "server";
system = "x86_64-linux";
};
vesuvio = {
role = "server";
system = "aarch64-linux";
};
};
}