mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-25 00:55:37 +00:00
760a016842
remove nixlang dedicated module
52 lines
1.3 KiB
Nix
52 lines
1.3 KiB
Nix
# The Hydra
|
|
# System configuration for WSL
|
|
|
|
# See [readme](../README.md) to explain how this file works.
|
|
|
|
{
|
|
inputs,
|
|
globals,
|
|
overlays,
|
|
...
|
|
}:
|
|
|
|
inputs.nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = { };
|
|
modules = [
|
|
../../modules/common
|
|
../../modules/nixos
|
|
../../modules/wsl
|
|
globals
|
|
inputs.wsl.nixosModules.wsl
|
|
inputs.home-manager.nixosModules.home-manager
|
|
{
|
|
networking.hostName = "hydra";
|
|
nixpkgs.overlays = overlays;
|
|
identityFile = "/home/${globals.user}/.ssh/id_ed25519";
|
|
gui.enable = false;
|
|
theme = {
|
|
colors = (import ../../colorscheme/gruvbox).dark;
|
|
dark = true;
|
|
};
|
|
passwordHash = inputs.nixpkgs.lib.fileContents ../../misc/password.sha512;
|
|
wsl = {
|
|
enable = true;
|
|
wslConf.automount.root = "/mnt";
|
|
defaultUser = globals.user;
|
|
startMenuLaunchers = true;
|
|
nativeSystemd = true;
|
|
wslConf.network.generateResolvConf = true; # Turn off if it breaks VPN
|
|
interop.includePath = false; # Including Windows PATH will slow down Neovim command mode
|
|
};
|
|
|
|
neovim.enable = true;
|
|
mail.enable = true;
|
|
mail.aerc.enable = true;
|
|
mail.himalaya.enable = true;
|
|
dotfiles.enable = true;
|
|
lua.enable = true;
|
|
}
|
|
];
|
|
}
|