summaryrefslogtreecommitdiffstats
path: root/demo/configuration.nix
blob: 74aebe4af29b7c4e58a242373ead42389dfe5ebb (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
{ ... }: {
  imports = [
    (import ./profile.nix { user = "demo"; })
  ];

  nix.trustedUsers = [ "root" "@wheel" ];

  security.sudo.enable = true;

  users.users.demo = {
    uid = 1000;
    isNormalUser = true;
    password = "demo1234";
    #hashedPassword = "$6$3vp.8UtiX$XSiK9o.4OMB1e.NWH9TebK2GigdAX2HvH9w0XUnv9gU2a96b6zLQCRS7HNnApafK16K2puxWjnC0A.eriwpUD1";
    extraGroups = [
      # allow demo to administer the machine
      "wheel"
    ];
  };

  users.users.root = {
    password = "root1234";
  };

  services.xserver.enable = false;
}