blob: 50da718c576d1d13cde189bfca337b6e29a6bbf9 (
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
53
54
55
56
|
{
lib,
modulesPath,
pkgs,
inputs,
...
}:
{
imports = [
(modulesPath + "/profiles/minimal.nix")
inputs.nixos-wsl.nixosModules.wsl
];
archetypes.personal.enable = true;
base = {
# this conflicts with nixos-wsl
networking.enable = false;
security = {
# something, something `resolv.conf` error
# (nixos-wsl probably doesn't set it)
apparmor = 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;
};
};
}
|