dotfiles/hosts/wsl/default.nix

38 lines
1.2 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
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";
2022-09-18 01:33:57 +00:00
# Set registry to flake packages, used for nix X commands
nix.registry.nixpkgs.flake = nixpkgs;
2022-07-07 11:49:48 +00:00
gui.enable = false;
2022-07-26 03:36:06 +00:00
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-26 03:15:26 +00:00
wslConf.network.generateResolvConf = true; # Turn off if it breaks VPN
2022-07-13 02:15:00 +00:00
interop.includePath =
2022-07-26 03:15:26 +00:00
false; # Including Windows PATH will slow down Neovim command mode
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-26 03:15:26 +00:00
../../modules/nixos
../../modules/mail/himalaya.nix
2022-07-26 03:36:06 +00:00
../../modules/repositories/notes.nix
2022-07-07 11:49:48 +00:00
../../modules/programming/nix.nix
../../modules/programming/lua.nix
];
}