dotfiles/hosts/wsl/default.nix

43 lines
1.2 KiB
Nix
Raw Normal View History

{ inputs, globals, ... }:
with inputs;
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-10-16 14:20:50 +00:00
identityFile = "/home/${globals.user}/.ssh/id_ed25519";
2022-07-07 11:49:48 +00:00
gui.enable = false;
2022-11-10 04:26:38 +00:00
theme = {
colors = (import ../../modules/colorscheme/gruvbox).dark;
dark = true;
};
2022-11-03 01:47:11 +00:00
passwordHash = nixpkgs.lib.fileContents ../../private/password.sha512;
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
2022-11-10 04:26:38 +00:00
../../modules/mail
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
];
}