steamui: init
a decklike experience thing
This commit is contained in:
parent
4993d0faa1
commit
20b6b2da48
4 changed files with 90 additions and 1 deletions
33
modules/linux/steamui.nix
Normal file
33
modules/linux/steamui.nix
Normal 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
|
||||
'')
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue