dotfiles/modules/wsl/default.nix

20 lines
638 B
Nix
Raw Normal View History

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