diff --git a/hosts/polymita-picta.nix b/hosts/polymita-picta.nix index 4fe55ba..98d61d9 100644 --- a/hosts/polymita-picta.nix +++ b/hosts/polymita-picta.nix @@ -11,6 +11,15 @@ config = { boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = false; + boot.binfmt.registrations.appimage = { + wrapInterpreterInShell = false; + interpreter = "${pkgs.appimage-run}/bin/appimage-run"; + recognitionType = "magic"; + offset = 0; + mask = ''\xff\xff\xff\xff\x00\x00\x00\x00\xff\xff\xff''; + magicOrExtension = ''\x7fELF....AI\x02''; + }; + networking.hostName = "polymita-picta"; networking.networkmanager.enable = true; @@ -73,14 +82,21 @@ programs.steam = { enable = true; - package = pkgs.steam; + package = pkgs.steam.override { + extraPkgs = p: [p.flatpak]; + }; remotePlay.openFirewall = true; }; jovian.devices.steamdeck.enable = true; + jovian.devices.steamdeck.autoUpdate = true; jovian.steam.enable = true; jovian.steam.autoStart = true; jovian.steam.desktopSession = "plasma"; jovian.steam.user = "deck"; + jovian.decky-loader = { + enable = true; + user = "deck"; + }; jovian.devices.steamdeck.enableVendorRadv = false; # This value determines the NixOS release from which the default diff --git a/pkgs/emudeck.nix b/pkgs/emudeck.nix index 81d054b..322d912 100644 --- a/pkgs/emudeck.nix +++ b/pkgs/emudeck.nix @@ -5,7 +5,7 @@ }: let hashes = (builtins.import ../hashes.nix).emudeck; in - appimageTools.wrapType2 { + appimageTools.wrapType1 { name = "emudeck"; inherit (hashes) version; @@ -25,4 +25,16 @@ in rsync newt ]; + + extraInstallCommands = '' + mkdir -p $out/share/applications + cat > $out/share/applications/EmuDeck-Nix.desktop << EOF + [Desktop Entry] + Name=EmuDeck-Nix + Exec=emudeck + Terminal=false + Type=Application + Categories=Game; + EOF + ''; } diff --git a/users/deck/home.nix b/users/deck/home.nix index 1744c1c..0b5cba8 100644 --- a/users/deck/home.nix +++ b/users/deck/home.nix @@ -13,6 +13,18 @@ xorg.libXScrnSaver ]; }; + + gamelog = pkgs.writeShellApplication { + name = "gamelog"; + runtimeInputs = [ + pkgs.spacer + pkgs.tailspin + pkgs.systemd + ]; + text = '' + journalctl --user -efu gamescope-session | spacer | spin + ''; + }; in { imports = [ ../modules/boilr.nix @@ -20,7 +32,7 @@ in { config = { home = { - packages = [lutrisWithLibs]; + packages = [lutrisWithLibs gamelog]; # Use some german units and formats but with the english language! language = { diff --git a/users/malte/shell.nix b/users/malte/shell.nix index 1aa6797..ac85ad4 100644 --- a/users/malte/shell.nix +++ b/users/malte/shell.nix @@ -60,6 +60,8 @@ in { zat = "zathura --fork"; discord-hack = "NIXPKGS_ALLOW_UNFREE=1 nix run 'github:NixOS/nixpkgs?ref=master#discord' --impure"; + + decklog = "ssh deck@polymita-picta gamelog"; }; shellAliases = { kal = "khal list (date '+%d.%m.%Y') (date --date='+1week' '+%d.%m.%Y')";