mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 16:16:50 +01:00
feat: more wsl tweaks
This commit is contained in:
parent
50289dcc0d
commit
72a3dc6c5a
10 changed files with 104 additions and 40 deletions
20
modules/system/wsl.nix
Normal file
20
modules/system/wsl.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
options.fireproof.wsl.enable = lib.mkEnableOption "Enable WSL configuration";
|
||||
|
||||
config = lib.mkIf config.fireproof.wsl.enable {
|
||||
wsl = {
|
||||
enable = true;
|
||||
defaultUser = config.fireproof.username;
|
||||
startMenuLaunchers = true;
|
||||
interop.includePath = false;
|
||||
};
|
||||
|
||||
# WSL doesn't use a bootloader - disable systemd-boot
|
||||
boot.loader.systemd-boot.enable = false;
|
||||
boot.loader.efi.canTouchEfiVariables = false;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue