2024-04-20 13:42:06 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
2022-07-08 03:13:09 +00:00
|
|
|
|
2022-12-21 21:18:03 +00:00
|
|
|
config = lib.mkIf (pkgs.stdenv.isLinux && config.wsl.enable) {
|
2022-07-08 03:13:09 +00:00
|
|
|
|
2022-12-21 21:18:03 +00:00
|
|
|
# Systemd doesn't work in WSL so these must be disabled
|
|
|
|
services.geoclue2.enable = lib.mkForce false;
|
2024-04-20 13:42:06 +00:00
|
|
|
location = {
|
|
|
|
provider = lib.mkForce "manual";
|
|
|
|
};
|
2022-12-21 21:18:03 +00:00
|
|
|
services.localtimed.enable = lib.mkForce false;
|
2022-07-10 22:17:19 +00:00
|
|
|
|
2022-12-21 21:18:03 +00:00
|
|
|
# Used by NeoVim for clipboard sharing with Windows
|
|
|
|
# home-manager.users.${config.user}.home.sessionPath =
|
|
|
|
# [ "/mnt/c/Program Files/win32yank/" ];
|
|
|
|
|
|
|
|
# Replace config directory with our repo, since it sources from config on
|
|
|
|
# every launch
|
|
|
|
system.activationScripts.configDir.text = ''
|
|
|
|
rm -rf /etc/nixos
|
|
|
|
ln --symbolic --no-dereference --force ${config.dotfilesPath} /etc/nixos
|
|
|
|
'';
|
|
|
|
};
|
2022-07-08 03:13:09 +00:00
|
|
|
}
|