[NixOS] Add jay-lenovo-wsl and wsl support

This commit is contained in:
2023-07-26 19:14:00 +00:00
parent 36b3ef1d9a
commit 19962bdc6e
9 changed files with 147 additions and 281 deletions

24
nixos/wsl.nix Normal file
View File

@@ -0,0 +1,24 @@
{ inputs, ... }:
{
imports = [
inputs.nixos-wsl.nixosModules.wsl
./nix.nix
./users.nix
./essential.nix
./environment.nix
];
programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
wsl = {
enable = true;
automountPath = "/mnt";
startMenuLaunchers = true;
# Enable native Docker support
# docker-native.enable = true;
# Enable integration with Docker Desktop (needs to be installed)
# docker-desktop.enable = true;
};
}