mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-10 02:52:55 +00:00
wsl-specific module
This commit is contained in:
parent
cfe3c137ba
commit
3015f29f3b
@ -22,6 +22,7 @@ nixpkgs.lib.nixosSystem {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
../common.nix
|
../common.nix
|
||||||
|
../../modules/wsl
|
||||||
../../modules/system
|
../../modules/system
|
||||||
../../modules/programming/nix.nix
|
../../modules/programming/nix.nix
|
||||||
../../modules/programming/lua.nix
|
../../modules/programming/lua.nix
|
||||||
|
13
modules/wsl/default.nix
Normal file
13
modules/wsl/default.nix
Normal 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
|
||||||
|
'';
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user