add wsl profiles

This commit is contained in:
UGA Innovation Factory
2025-12-11 17:42:17 -05:00
parent 9f7198065b
commit 11a9fcd038
5 changed files with 91 additions and 0 deletions

28
hosts/types/nix-wsl.nix Normal file
View File

@@ -0,0 +1,28 @@
{ inputs, ... }:
[
inputs.nixos-wsl.nixosModules.default
inputs.vscode-server.nixosModules.default
({ lib, ... }: {
wsl.enable = true;
wsl.defaultUser = "engr-ugaif";
# Enable the headless software profile
modules.sw.enable = true;
modules.sw.type = "headless";
# Fix for VS Code Server in WSL if needed, though vscode-server input exists
services.vscode-server.enable = true;
# Disable Disko and Bootloader for WSL
disko.enableConfig = lib.mkForce false;
boot.loader.systemd-boot.enable = lib.mkForce false;
boot.loader.grub.enable = lib.mkForce false;
# Disable networking for wsl (it manages its own networking)
systemd.network.enable = lib.mkForce false;
# Provide dummy values for required options from boot.nix
host.filesystem.device = "/dev/null";
host.filesystem.swapSize = "0G";
})
]