ark/hosts/wsl/default.nix

38 lines
689 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 = {
FLAKE = "/home/firewatch/conf";
};
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";
}