This repository has no description
1.1 kB
57 lines
1{ config, pkgs, ... }:
2
3let
4 mainUser = config.users.extraUsers.mainUser;
5
6in
7{
8 users.extraUsers = {
9 games = {
10 name = "games";
11 description = "user playing games";
12 home = "/home/games";
13 extraGroups = [
14 "audio"
15 "video"
16 "input"
17 "loot"
18 "pipewire"
19 ];
20 createHome = true;
21 useDefaultShell = true;
22 packages = with pkgs; [
23 # minecraft
24 # ftb
25 # steam-run
26 # scummvm
27 # dolphinEmu
28 # doom1
29 # doom2
30 # protontricks
31 # vdoom1
32 # vdoom2
33 # vdoomserver
34 retroarchBare
35 ];
36 isNormalUser = true;
37 };
38 };
39
40 hardware.graphics.enable32Bit = true;
41 services.pulseaudio.support32Bit = true;
42
43 security.sudo.extraConfig = ''
44 ${mainUser.name} ALL=(games) NOPASSWD: ALL
45 '';
46
47 krebs.iptables.tables.filter.INPUT.rules = [
48 {
49 predicate = "-p tcp --dport 10666";
50 target = "ACCEPT";
51 }
52 {
53 predicate = "-p udp --dport 10666";
54 target = "ACCEPT";
55 }
56 ];
57}