feat: debugging deck games and add missing tools

This commit is contained in:
Malte Tammena 2023-11-24 01:00:04 +01:00
parent d57cbc233a
commit 10c48510cb
4 changed files with 45 additions and 3 deletions

View file

@ -11,6 +11,15 @@
config = { config = {
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = false; 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.hostName = "polymita-picta";
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
@ -73,14 +82,21 @@
programs.steam = { programs.steam = {
enable = true; enable = true;
package = pkgs.steam; package = pkgs.steam.override {
extraPkgs = p: [p.flatpak];
};
remotePlay.openFirewall = true; remotePlay.openFirewall = true;
}; };
jovian.devices.steamdeck.enable = true; jovian.devices.steamdeck.enable = true;
jovian.devices.steamdeck.autoUpdate = true;
jovian.steam.enable = true; jovian.steam.enable = true;
jovian.steam.autoStart = true; jovian.steam.autoStart = true;
jovian.steam.desktopSession = "plasma"; jovian.steam.desktopSession = "plasma";
jovian.steam.user = "deck"; jovian.steam.user = "deck";
jovian.decky-loader = {
enable = true;
user = "deck";
};
jovian.devices.steamdeck.enableVendorRadv = false; jovian.devices.steamdeck.enableVendorRadv = false;
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default

View file

@ -5,7 +5,7 @@
}: let }: let
hashes = (builtins.import ../hashes.nix).emudeck; hashes = (builtins.import ../hashes.nix).emudeck;
in in
appimageTools.wrapType2 { appimageTools.wrapType1 {
name = "emudeck"; name = "emudeck";
inherit (hashes) version; inherit (hashes) version;
@ -25,4 +25,16 @@ in
rsync rsync
newt 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
'';
} }

View file

@ -13,6 +13,18 @@
xorg.libXScrnSaver xorg.libXScrnSaver
]; ];
}; };
gamelog = pkgs.writeShellApplication {
name = "gamelog";
runtimeInputs = [
pkgs.spacer
pkgs.tailspin
pkgs.systemd
];
text = ''
journalctl --user -efu gamescope-session | spacer | spin
'';
};
in { in {
imports = [ imports = [
../modules/boilr.nix ../modules/boilr.nix
@ -20,7 +32,7 @@ in {
config = { config = {
home = { home = {
packages = [lutrisWithLibs]; packages = [lutrisWithLibs gamelog];
# Use some german units and formats but with the english language! # Use some german units and formats but with the english language!
language = { language = {

View file

@ -60,6 +60,8 @@ in {
zat = "zathura --fork"; zat = "zathura --fork";
discord-hack = "NIXPKGS_ALLOW_UNFREE=1 nix run 'github:NixOS/nixpkgs?ref=master#discord' --impure"; discord-hack = "NIXPKGS_ALLOW_UNFREE=1 nix run 'github:NixOS/nixpkgs?ref=master#discord' --impure";
decklog = "ssh deck@polymita-picta gamelog";
}; };
shellAliases = { shellAliases = {
kal = "khal list (date '+%d.%m.%Y') (date --date='+1week' '+%d.%m.%Y')"; kal = "khal list (date '+%d.%m.%Y') (date --date='+1week' '+%d.%m.%Y')";