summaryrefslogtreecommitdiffstats
path: root/modules/lass/games.nix
blob: d48c484da1836477ae985dd4cb5ca526b5294fa9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ config, pkgs, ... }:

{
  environment.systemPackages = with pkgs; [
    dwarf_fortress
  ];

  users.extraUsers = {
    games = {
      name = "games";
      description = "user playing games";
      home = "/home/games";
      extraGroups = [ "audio" ];
      createHome = true;
      useDefaultShell = true;
    };
  };

  security.sudo.extraConfig = ''
    lass ALL=(games) NOPASSWD: ALL
  '';
}