33 lines
928 B
Nix
Raw Normal View History

2025-01-20 22:35:40 -05:00
{ config, lib, ... }:
let
2025-03-09 18:04:01 +00:00
inherit (config.nmasur.settings) username;
2025-01-20 22:35:40 -05:00
cfg = config.nmasur.profiles.wsl;
in
{
options.nmasur.profiles.wsl.enable = lib.mkEnableOption "WSL settings";
config = lib.mkIf cfg.enable {
2025-03-09 18:04:01 +00:00
wsl = {
enable = true;
wslConf.automount.root = lib.mkDefault "/mnt";
defaultUser = lib.mkDefault username;
startMenuLaunchers = lib.mkDefault true;
nativeSystemd = lib.mkDefault true;
wslConf.network.generateResolvConf = lib.mkDefault true; # Turn off if it breaks VPN
interop.includePath = lib.mkDefault false; # Including Windows PATH will slow down Neovim command mode
};
2025-02-01 16:10:16 -05:00
# # 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
# '';
2025-01-20 22:35:40 -05:00
};
}