fix: better isWSL handling
This commit is contained in:
@@ -24,7 +24,6 @@
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "tux";
|
name = "tux";
|
||||||
isWSL = false;
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
in
|
in
|
||||||
@@ -40,7 +39,8 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules =
|
||||||
|
[
|
||||||
./hosts/${host.name}/configuration.nix
|
./hosts/${host.name}/configuration.nix
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
@@ -49,7 +49,10 @@
|
|||||||
"flakes"
|
"flakes"
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
] ++ (if host.isWSL then [ nixos-wsl.nixosModules.default ] else [ ]);
|
]
|
||||||
|
++ (
|
||||||
|
if builtins.hasAttr "isWSL" host && host.isWSL then [ nixos-wsl.nixosModules.default ] else [ ]
|
||||||
|
);
|
||||||
};
|
};
|
||||||
}) hosts
|
}) hosts
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user