wsl compatibility fixes

This commit is contained in:
Noah Masur
2022-07-08 01:31:00 +00:00
parent 86b1ab61cb
commit cfe3c137ba
4 changed files with 84 additions and 5 deletions

View File

@ -1,4 +1,4 @@
{ nixpkgs, home-manager, globals, ... }:
{ nixpkgs, wsl, home-manager, globals, ... }:
# System configuration for WSL
nixpkgs.lib.nixosSystem {
@ -7,13 +7,22 @@ nixpkgs.lib.nixosSystem {
modules = [
globals
home-manager.nixosModules.home-manager
wsl.nixosModules.wsl
home-manager.nixosModules.home-manager
{
networking.hostName = "wsl";
gui.enable = false;
passwordHash =
"$6$PZYiMGmJIIHAepTM$Wx5EqTQ5GApzXx58nvi8azh16pdxrN6Qrv1wunDlzveOgawitWzcIxuj76X9V868fsPi/NOIEO8yVXqwzS9UF.";
wsl = {
enable = true;
automountPath = "/mnt";
defaultUser = globals.user;
startMenuLaunchers = true;
};
}
../common.nix
../../modules/system
../../modules/programming/nix.nix
../../modules/programming/lua.nix
];