fix: better isWSL handling
This commit is contained in:
@@ -24,7 +24,6 @@
|
||||
}
|
||||
{
|
||||
name = "tux";
|
||||
isWSL = false;
|
||||
}
|
||||
];
|
||||
in
|
||||
@@ -40,16 +39,20 @@
|
||||
};
|
||||
};
|
||||
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 [ ]);
|
||||
modules =
|
||||
[
|
||||
./hosts/${host.name}/configuration.nix
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
nix.settings.experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
}
|
||||
]
|
||||
++ (
|
||||
if builtins.hasAttr "isWSL" host && host.isWSL then [ nixos-wsl.nixosModules.default ] else [ ]
|
||||
);
|
||||
};
|
||||
}) hosts
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user