greenhouse

kore

my public infrastructure monorepo

git clone [email protected]:kore.git

kore / nixos / hosts / gomphrena.nix27 lines · 545B · raw

1{ inputs, lib, ... }:
2
3{
4  imports = [ inputs.nixos-wsl.nixosModules.default ];
5
6  # WSL can't mount /persist at boot.
7  kore.impermanence.enable = false;
8
9  # WSL can't register auditd ("Unable to set audit pid").
10  security = {
11    audit.enable = lib.mkForce false;
12    auditd.enable = lib.mkForce false;
13  };
14
15  # CLI only here: no mesa/LLVM (~830 MiB).
16  hardware.graphics.enable = lib.mkForce false;
17
18  wsl = {
19    enable = true;
20    defaultUser = "lostduk";
21
22    usbip = {
23      enable = true;
24      autoAttach = [ "1-14" ];
25    };
26  };
27}