dotfiles/hosts/wsl/default.nix

35 lines
1.0 KiB
Nix
Raw Normal View History

2022-07-08 01:31:00 +00:00
{ nixpkgs, wsl, home-manager, globals, ... }:
2022-07-07 11:49:48 +00:00
# System configuration for WSL
nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { };
modules = [
globals
home-manager.nixosModules.home-manager
2022-07-08 01:31:00 +00:00
wsl.nixosModules.wsl
home-manager.nixosModules.home-manager
2022-07-07 11:49:48 +00:00
{
networking.hostName = "wsl";
gui.enable = false;
2022-07-09 21:57:56 +00:00
gui.colorscheme = (import ../../modules/colorscheme/gruvbox);
2022-07-07 11:49:48 +00:00
passwordHash =
"$6$PZYiMGmJIIHAepTM$Wx5EqTQ5GApzXx58nvi8azh16pdxrN6Qrv1wunDlzveOgawitWzcIxuj76X9V868fsPi/NOIEO8yVXqwzS9UF.";
2022-07-08 01:31:00 +00:00
wsl = {
enable = true;
automountPath = "/mnt";
defaultUser = globals.user;
startMenuLaunchers = true;
2022-07-13 02:15:00 +00:00
wslConf.network.generateResolvConf = true; # Turn off if breaking VPN
interop.includePath =
false; # Including Windows PATH will slow down Neovim
2022-07-08 01:31:00 +00:00
};
2022-07-07 11:49:48 +00:00
}
../common.nix
2022-07-08 03:13:09 +00:00
../../modules/wsl
2022-07-08 01:31:00 +00:00
../../modules/system
2022-07-07 11:49:48 +00:00
../../modules/programming/nix.nix
../../modules/programming/lua.nix
];
}