greenhouse

kore

my public infrastructure monorepo

git clone [email protected]:kore.git

kore / nixos / hosts / sunflower.nix34 lines · 645B · raw

1{ 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}