ark/hosts/wsl/default.nix

38 lines
688 B
Nix
Raw Normal View History

2024-05-28 05:49:23 +03:00
{
config,
lib,
tlib,
pkgs,
inputs,
...
}: {
imports =
[
../../users/root
../../users/firewatch
inputs.nixos-wsl.nixosModules.wsl
2024-05-28 07:24:09 +03:00
inputs.agenix.nixosModules.default
2024-05-28 05:49:23 +03:00
]
++ (tlib.importFolder (toString ./modules));
wsl.enable = true;
wsl.defaultUser = "firewatch";
nix.settings.max-jobs = lib.mkForce 10;
networking.hostName = "wsl";
environment.systemPackages = [pkgs.wget];
2024-05-28 07:24:09 +03:00
environment.sessionVariables = {
2024-08-24 14:40:13 +03:00
FLAKE = "/home/firewatch/ark";
2024-05-28 07:24:09 +03:00
};
2024-05-28 05:49:23 +03:00
# for tailscale
networking.firewall.checkReversePath = "loose";
services.tailscale.enable = true;
services.earlyoom.enable = true;
system.stateVersion = "23.11";
}