greenhouse

kore

my public infrastructure monorepo

git clone [email protected]:kore.git

kore / nixos / hosts / gomphrena.nix41 lines · 812B · raw

1{ lib, pkgs, inputs, modulesPath, ... }:
2
3{
4  imports = [
5    inputs.nixos-wsl.nixosModules.default
6
7    ( modulesPath + "/installer/scan/not-detected.nix" )
8  ];
9
10  wsl = {
11    enable = true;
12    defaultUser = "lostduk";
13    useWindowsDriver = true;
14
15    usbip = {
16      enable = true;
17      autoAttach = [ "1-14" ];
18    };
19  };
20
21  users.users.lostduk = {
22    password = "tmp";
23    isNormalUser = true;
24
25    extraGroups = [ "wheel" ];
26    subUidRanges = [{ startUid = 100000; count = 65536; }];
27    subGidRanges = [{ startGid = 100000; count = 65536; }];
28  };
29
30  hardware = {
31    graphics.enable = true;
32    cpu.intel.updateMicrocode = true;
33  };
34
35  environment.persistence."/persist" = lib.mkForce {};
36
37  fileSystems."/persist" = {
38    enable = lib.mkForce false;
39    neededForBoot = lib.mkForce false;
40  };
41}