summaryrefslogtreecommitdiff
path: root/systems/glados-wsl/default.nix
blob: ab4d23f0b0a7f905a6fc7b370e20040f169a8c8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
  lib,
  modulesPath,
  pkgs,
  inputs,
  ...
}:
{
  imports = [
    (modulesPath + "/profiles/minimal.nix")
    inputs.nixos-wsl.nixosModules.wsl
  ];

  archetypes.personal.enable = true;

  base = {
    # these don't work well on wsl
    networking.enable = false;
    security.enable = false;
  };

  environment = {
    # i occasionally use graphics stuff
    noXlibs = lib.mkForce false;
    systemPackages = with pkgs; [
      wget
      wslu
    ];
  };

  networking.hostName = "glados-wsl";

  nixpkgs.hostPlatform = "x86_64-linux";

  system.stateVersion = "23.11";

  traits.tailscale.enable = true;

  wsl = {
    enable = true;

    defaultUser = "seth";
    interop.includePath = false; # this is so annoying
    nativeSystemd = true;
    startMenuLaunchers = false; # ditto

    wslConf.network = {
      hostname = "glados-wsl";
      generateResolvConf = true;
    };
  };
}