summaryrefslogtreecommitdiffstats
path: root/demo/configuration.nix
blob: 4f3a55177f0c79f1c352b52af4a58a219436afcc (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
{ ... }: {
  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;

  services.mingetty.helpLine = ''

       Welcome to the Sway demo

    login: demo
    password: demo1234

    Once logged-in, type `sway` to start the desktop environment.
  '';
}