steamui: init

a decklike experience thing
This commit is contained in:
Nico 2025-05-03 16:16:02 +10:00
parent 4993d0faa1
commit 20b6b2da48
4 changed files with 90 additions and 1 deletions

33
modules/linux/steamui.nix Normal file
View file

@ -0,0 +1,33 @@
{ config, lib, pkgs, ... }:
{
jovian.steam = {
enable = true;
autoStart = true;
user = "nico";
desktopSession = "hyprland";
updater.splash = "bgrt";
};
boot = {
consoleLogLevel = 0;
initrd.verbose = false;
loader.timeout = 0;
kernelParams = [
"quiet"
"splash"
"vga=current"
"rd.systemd.show_status=false"
];
};
environment.systemPackages = with pkgs; [
(writeShellScriptBin "hyprexit" ''
CHOICE=$(echo -e "Yes\nNo" | walker -d -p "Are you sure you want to return to gaming mode?")
if [ "$CHOICE" = "Yes" ]; then
hyprctl dispatch exit & loginctl terminate-user $USER &
fi
'')
];
}