dotfiles/hosts/hydra/default.nix

52 lines
1.3 KiB
Nix
Raw Permalink Normal View History

2023-02-11 14:35:38 +00:00
# The Hydra
# System configuration for WSL
2024-01-16 21:30:31 +00:00
# See [readme](../README.md) to explain how this file works.
2024-04-13 13:03:44 +00:00
{
inputs,
globals,
overlays,
...
}:
inputs.nixpkgs.lib.nixosSystem {
2022-07-07 11:49:48 +00:00
system = "x86_64-linux";
specialArgs = { };
modules = [
../../modules/common
../../modules/nixos
2023-04-16 00:55:56 +00:00
../../modules/wsl
2022-07-07 11:49:48 +00:00
globals
inputs.wsl.nixosModules.wsl
inputs.home-manager.nixosModules.home-manager
2022-07-07 11:49:48 +00:00
{
2023-02-11 14:35:38 +00:00
networking.hostName = "hydra";
2023-01-28 15:36:52 +00:00
nixpkgs.overlays = overlays;
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;
};
passwordHash = inputs.nixpkgs.lib.fileContents ../../misc/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;
2023-02-11 14:35:38 +00:00
nativeSystemd = true;
2022-07-26 03:15:26 +00:00
wslConf.network.generateResolvConf = true; # Turn off if it breaks VPN
2024-04-13 13:03:44 +00:00
interop.includePath = 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;
lua.enable = true;
2022-07-07 11:49:48 +00:00
}
];
}