remove sunshine and gamescope nested session
This commit is contained in:
parent
3bad9cb4a7
commit
bfe8141a86
4 changed files with 12 additions and 58 deletions
|
|
@ -137,14 +137,19 @@
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
security.pam.services.niri.enableGnomeKeyring = config.services.gnome.gnome-keyring.enable;
|
security = {
|
||||||
security.pam.services.swaylock = {
|
pam.services = {
|
||||||
name = "swaylock";
|
niri.enableGnomeKeyring = config.services.gnome.gnome-keyring.enable;
|
||||||
enableGnomeKeyring = config.services.gnome.gnome-keyring.enable;
|
swaylock = {
|
||||||
gnupg.enable = true;
|
name = "swaylock";
|
||||||
gnupg.noAutostart = true;
|
enableGnomeKeyring = config.services.gnome.gnome-keyring.enable;
|
||||||
|
gnupg.enable = true;
|
||||||
|
gnupg.noAutostart = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
sudo.wheelNeedsPassword = false;
|
||||||
|
polkit.enable = true;
|
||||||
};
|
};
|
||||||
security.polkit.enable = true;
|
|
||||||
networking.firewall.enable = false;
|
networking.firewall.enable = false;
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
documentation.man.enable = true;
|
documentation.man.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -61,21 +61,6 @@
|
||||||
"nvidia"
|
"nvidia"
|
||||||
];
|
];
|
||||||
|
|
||||||
services.displayManager = {
|
|
||||||
autoLogin = {
|
|
||||||
enable = false;
|
|
||||||
user = "sckova";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
environment = {
|
|
||||||
loginShellInit = ''
|
|
||||||
[[ "$(tty)" = "/dev/tty1" ]] && ./gs.sh
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
security.sudo.wheelNeedsPassword = false;
|
|
||||||
|
|
||||||
hardware.nvidia = {
|
hardware.nvidia = {
|
||||||
modesetting.enable = true;
|
modesetting.enable = true;
|
||||||
powerManagement.enable = false;
|
powerManagement.enable = false;
|
||||||
|
|
@ -83,13 +68,6 @@
|
||||||
open = false;
|
open = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.sunshine = {
|
|
||||||
enable = true;
|
|
||||||
autoStart = true;
|
|
||||||
capSysAdmin = true;
|
|
||||||
openFirewall = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# virtualization settings
|
# virtualization settings
|
||||||
|
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
|
|
|
||||||
|
|
@ -1,27 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
set -xeuo pipefail
|
|
||||||
|
|
||||||
gamescopeArgs=(
|
|
||||||
--adaptive-sync # VRR support
|
|
||||||
--hdr-enabled
|
|
||||||
--mangoapp # performance overlay
|
|
||||||
--rt
|
|
||||||
--steam
|
|
||||||
)
|
|
||||||
steamArgs=(
|
|
||||||
-pipewire-dmabuf
|
|
||||||
-tenfoot
|
|
||||||
)
|
|
||||||
mangoConfig=(
|
|
||||||
cpu_temp
|
|
||||||
gpu_temp
|
|
||||||
ram
|
|
||||||
vram
|
|
||||||
)
|
|
||||||
mangoVars=(
|
|
||||||
MANGOHUD=1
|
|
||||||
MANGOHUD_CONFIG="$(IFS=,; echo "${mangoConfig[*]}")"
|
|
||||||
)
|
|
||||||
|
|
||||||
export "${mangoVars[@]}"
|
|
||||||
exec gamescope "${gamescopeArgs[@]}" -- steam "${steamArgs[@]}"
|
|
||||||
|
|
@ -58,6 +58,4 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
security.sudo.wheelNeedsPassword = false;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue