2023-01-28 15:36:52 +00:00
|
|
|
{ inputs, globals, overlays, ... }:
|
2022-10-31 00:14:41 +00:00
|
|
|
|
|
|
|
with inputs;
|
2022-07-07 11:49:48 +00:00
|
|
|
|
|
|
|
# System configuration for WSL
|
|
|
|
nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
specialArgs = { };
|
|
|
|
modules = [
|
2022-12-22 00:31:25 +00:00
|
|
|
../../modules
|
|
|
|
../../nixos
|
2022-07-07 11:49:48 +00:00
|
|
|
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";
|
2023-01-28 15:36:52 +00:00
|
|
|
nixpkgs.overlays = overlays;
|
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 = {
|
2022-12-21 21:18:03 +00:00
|
|
|
colors = (import ../../colorscheme/gruvbox).dark;
|
2022-11-10 04:26:38 +00:00
|
|
|
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;
|
2023-01-28 15:36:52 +00:00
|
|
|
wslConf.automount.root = "/mnt";
|
2022-07-08 01:31:00 +00:00
|
|
|
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-12-21 21:18:03 +00:00
|
|
|
|
2023-01-28 15:36:52 +00:00
|
|
|
neovim.enable = true;
|
2022-12-22 00:31:25 +00:00
|
|
|
mail.enable = true;
|
2022-12-21 21:18:03 +00:00
|
|
|
mail.aerc.enable = true;
|
|
|
|
mail.himalaya.enable = true;
|
|
|
|
dotfiles.enable = true;
|
|
|
|
nixlang.enable = true;
|
|
|
|
lua.enable = true;
|
2022-07-07 11:49:48 +00:00
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|