wsl-specific module

This commit is contained in:
Noah Masur 2022-07-08 03:13:09 +00:00
parent cfe3c137ba
commit 3015f29f3b
2 changed files with 14 additions and 0 deletions

View File

@ -22,6 +22,7 @@ nixpkgs.lib.nixosSystem {
};
}
../common.nix
../../modules/wsl
../../modules/system
../../modules/programming/nix.nix
../../modules/programming/lua.nix

13
modules/wsl/default.nix Normal file
View File

@ -0,0 +1,13 @@
{ config, lib, ... }: {
services.geoclue2.enable = lib.mkForce false;
location = { provider = lib.mkForce "manual"; };
services.localtimed.enable = lib.mkForce false;
# Replace config directory with our repo
system.activationScripts.configDir.text = ''
rm -rf /etc/nixos
ln --symbolic --no-dereference --force ${config.dotfilesPath} /etc/nixos
'';
}