"99 2026-01-27 15:51:58 26.05.20260123.c5296fd 6.18.7"
This commit is contained in:
44
flake.nix
44
flake.nix
@@ -20,18 +20,40 @@
|
||||
nixpkgs-stable,
|
||||
zen-browser,
|
||||
...
|
||||
} @ inputs: {
|
||||
nixosConfigurations.ArcticFox = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = let
|
||||
system = "x86_64-linux";
|
||||
in {
|
||||
inherit inputs;
|
||||
pkgs-stable = import nixpkgs-stable {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
} @ inputs: let
|
||||
system = "x86_64-linux";
|
||||
|
||||
hosts = [
|
||||
{hostname = "ArcticFox";}
|
||||
];
|
||||
|
||||
makeSystem = {hostname}:
|
||||
nixpkgs.lib.nixosSystem {
|
||||
system = system;
|
||||
|
||||
specialArgs = {
|
||||
inherit inputs hostname;
|
||||
pkgs-stable = import nixpkgs-stable {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
};
|
||||
|
||||
modules = [
|
||||
./hosts/${hostname}/configuration.nix
|
||||
];
|
||||
};
|
||||
modules = [./configuration.nix];
|
||||
};
|
||||
in {
|
||||
nixosConfigurations =
|
||||
nixpkgs.lib.foldl' (
|
||||
configs: host:
|
||||
configs
|
||||
// {
|
||||
"${host.hostname}" = makeSystem {
|
||||
inherit (host) hostname;
|
||||
};
|
||||
}
|
||||
) {}
|
||||
hosts;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user