made changes for clean ness and games-on-whales

This commit is contained in:
k 2024-08-29 01:22:47 -04:00
parent da59669d85
commit fdb32cae0e

View File

@ -78,6 +78,34 @@
};
};
services.udev.extraRules = ''
# Allows Wolf to acces /dev/uinput
KERNEL=="uinput", SUBSYSTEM=="misc", MODE="0660", GROUP="input", OPTIONS+="static_node=uinput"
# Allows Wolf to access /dev/uhid
KERNEL=="uhid", TAG+="uaccess"
# Move virtual keyboard and mouse into a different seat
SUBSYSTEMS=="input", ATTRS{id/vendor}=="ab00", MODE="0660", GROUP="input", ENV{ID_SEAT}="seat9"
# Joypads
SUBSYSTEMS=="input", ATTRS{name}=="Wolf X-Box One (virtual) pad", MODE="0660", GROUP="input"
SUBSYSTEMS=="input", ATTRS{name}=="Wolf PS5 (virtual) pad", MODE="0660", GROUP="input"
SUBSYSTEMS=="input", ATTRS{name}=="Wolf gamepad (virtual) motion sensors", MODE="0660", GROUP="input"
SUBSYSTEMS=="input", ATTRS{name}=="Wolf Nintendo (virtual) pad", MODE="0660", GROUP="input"
'';
users.users.game = {
isNormalUser = true;
extraGroups = ["docker" "input"];
packages = with pkgs; [docker-compose];
};
users.users.media = {
isNormalUser = true;
packages = with pkgs; [mpv ffmpeg handbrake makemkv];
};
system.autoUpgrade.enable = true;
nix.gc.automatic = true;