mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-25 17:46:14 +01:00
365fd41adc
Signed-off-by: Magic_RB <magic_rb@redalder.org>
28 lines
806 B
Nix
28 lines
806 B
Nix
{ pkgs, lib, ... }:
|
|
{
|
|
programs.gamemode.enable = true;
|
|
|
|
environment.systemPackages = [
|
|
];
|
|
|
|
programs.steam = {
|
|
enable = true;
|
|
remotePlay.openFirewall = true;
|
|
package = pkgs.steam-small.override {
|
|
extraPkgs = p: with p; [
|
|
p.gamescope
|
|
p.mangohud
|
|
];
|
|
extraLibraries = p: with p; [
|
|
p.libkrb5
|
|
p.keyutils
|
|
];
|
|
};
|
|
};
|
|
|
|
services.udev.extraRules = ''
|
|
ACTION=="add", SUBSYSTEM=="block", ENV{ID_PART_ENTRY_UUID}=="a7588d17-2c04-4bb7-8c10-b2aaeed1826c" RUN{program}+="${pkgs.systemd}/bin/systemd-mount --no-block $devnode /media/steam_library"
|
|
ACTION=="remove", SUBSYSTEM=="block", ENV{ID_PART_ENTRY_UUID}=="a7588d17-2c04-4bb7-8c10-b2aaeed1826c" RUN{program}+="${pkgs.systemd}/bin/systemctl stop media-steam_library.mount"
|
|
'';
|
|
}
|