-
Notifications
You must be signed in to change notification settings - Fork 131
/
Copy pathvm.nix
48 lines (43 loc) · 1011 Bytes
/
vm.nix
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
{ pkgs, config, lib, ... }:
{
### Make PaperWM available in system environment
environment.systemPackages = with pkgs;
[ paperwm
];
### Set graphical session to auto-login GNOME
services.xserver =
{ enable = true;
displayManager.autoLogin =
{ enable = true;
user = "user";
};
displayManager.gdm.enable = true;
desktopManager.gnome.enable = true;
};
### Set dconf to enable PaperWM out of the box
programs.dconf =
{ enable = true;
profiles."user".databases = [
{ settings =
{ "org/gnome/shell" =
{ enabled-extensions = [ "[email protected]" ];
};
};
}
];
};
### Set default user
users.users."user" =
{ isNormalUser = true;
createHome = true;
home = "/home";
description = "PaperWM test user";
extraGroups = [ "wheel" ];
password = "paperwm";
};
### No-password sudo
security.sudo =
{ enable = true;
extraConfig = "%wheel ALL=(ALL) NOPASSWD: ALL";
};
}