chore: formatted

This commit is contained in:
2025-01-24 11:17:21 -08:00
parent 6a3387b8bd
commit 5c95d29a74
13 changed files with 147 additions and 54 deletions

View File

@@ -8,7 +8,13 @@
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = inputs@{ nixpkgs, home-manager, nixos-wsl, ... }:
outputs =
inputs@{
nixpkgs,
home-manager,
nixos-wsl,
...
}:
let
systems = [ "x86_64-linux" ];
hosts = [
@@ -21,23 +27,31 @@
isWSL = false;
}
];
in {
nixosConfigurations = builtins.listToAttrs (map (host: {
name = host.name;
value = nixpkgs.lib.nixosSystem {
specialArgs = {
inherit inputs;
meta = { hostname = host.name; };
in
{
nixosConfigurations = builtins.listToAttrs (
map (host: {
name = host.name;
value = nixpkgs.lib.nixosSystem {
specialArgs = {
inherit inputs;
meta = {
hostname = host.name;
};
};
system = "x86_64-linux";
modules = [
./hosts/${host.name}/configuration.nix
home-manager.nixosModules.home-manager
{
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
}
] ++ (if host.isWSL then [ nixos-wsl.nixosModules.default ] else [ ]);
};
system = "x86_64-linux";
modules = [
./hosts/${host.name}/configuration.nix
home-manager.nixosModules.home-manager
{
nix.settings.experimental-features = [ "nix-command" "flakes" ];
}
] ++ (if host.isWSL then [ nixos-wsl.nixosModules.default ] else [ ]);
};
}) hosts);
}) hosts
);
};
}