From f00a49d4d434c49705e4287f8912112d1522ee3f Mon Sep 17 00:00:00 2001 From: Lilith Date: Fri, 25 Apr 2025 11:30:51 +0200 Subject: [PATCH] local --- home/lilith/hyprland/default.nix | 18 +++++++++++++----- home/lilith/packages.nix | 4 ++++ home/lilith/ssh.nix | 25 +++++++++++++++++++++++-- system/optional/gaming.nix | 22 +++++++++++++--------- unfree.nix | 2 -- 5 files changed, 53 insertions(+), 18 deletions(-) diff --git a/home/lilith/hyprland/default.nix b/home/lilith/hyprland/default.nix index 2349952a..d392f003 100644 --- a/home/lilith/hyprland/default.nix +++ b/home/lilith/hyprland/default.nix @@ -25,15 +25,22 @@ monitor = [ ",preferred,1" ]; + ecosystem = { + "no_update_news" = true; + "no_donation_nag" = true; + }; + exec-once = [ "hyprlock" "ags" - "[workspace special:keepass silent] keepassxc" ]; - windowrulev2 = [ + exec = [ "[workspace special:keepass silent] keepassxc" ]; + + windowrule = [ "workspace special:keepass,class:org.keepassxc.KeePassXC,title:^(.*)(KeePassXC)(.*)$" "workspace unset,class:org.keepassxc.KeePassXC,title:Unlock Database - KeePassXC" + "noanim, class:^ueberzugpp_(.*)$" ]; workspace = [ @@ -97,6 +104,7 @@ dwindle = { pseudotile = true; + smart_split = true; preserve_split = true; }; @@ -109,14 +117,14 @@ bind = [ "$mainMod, Q, exec, $terminal" + "$mainMod, W, exec, $terminal -e yazi" "$mainMod, C, killactive," "$mainMod, backspace, exec, hyprlock" - "$mainMod, E, exec, $fileManager" - "$mainMod, A, togglefloating," "$mainMod, R, exec, rofi -show drun" - "$mainMod, D, pseudo," + "$mainMod, A, togglefloating," "$mainMod, S, togglesplit," + "$mainMod, D, pseudo," "$mainMod, F, fullscreen," "$mainMod, P, togglespecialworkspace, keepass" diff --git a/home/lilith/packages.nix b/home/lilith/packages.nix index f53a246c..9e4152a3 100644 --- a/home/lilith/packages.nix +++ b/home/lilith/packages.nix @@ -31,5 +31,9 @@ prismlauncher lutris # steamtinkerlaunch + + unzip + ueberzugpp + yazi ]; } diff --git a/home/lilith/ssh.nix b/home/lilith/ssh.nix index 6aee5dcb..9ea0cc63 100644 --- a/home/lilith/ssh.nix +++ b/home/lilith/ssh.nix @@ -1,4 +1,25 @@ -{...}:{ +{ ... }: +{ services.ssh-agent.enable = true; -} + programs.ssh = { + enable = true; + + matchBlocks = { + "hpc" = { + user = "benstem"; + hostname = "login1.hpc.uni-potsdam.de"; + }; + + "lilith-lab" = { + user = "lilith"; + hostname = "nixserver"; + }; + + "lilith-server" = { + user = "lilith"; + hostname = "2a01:4f9:4a:1ecb::2:"; + }; + }; + }; +} diff --git a/system/optional/gaming.nix b/system/optional/gaming.nix index 3d320633..42c25b75 100644 --- a/system/optional/gaming.nix +++ b/system/optional/gaming.nix @@ -4,32 +4,36 @@ lib, ... }: +let + gaming-host = lib.mkIf (!config.gaming.client-only); +in { options.gaming.enable = lib.mkEnableOption "Enable steam and related software"; + options.gaming.client-only = lib.mkEnableOption "Only enable steam, to stream via SteamLink"; config = lib.mkIf config.gaming.enable { programs = { - gamescope = { + gamescope = gaming-host { enable = true; capSysNice = true; }; steam = { enable = true; - gamescopeSession.enable = true; + gamescopeSession.enable = gaming-host true; - remotePlay.openFirewall = true; - dedicatedServer.openFirewall = true; - localNetworkGameTransfers.openFirewall = true; + remotePlay.openFirewall = gaming-host true; + dedicatedServer.openFirewall = gaming-host true; + localNetworkGameTransfers.openFirewall = gaming-host true; }; - gamemode.enable = true; + gamemode.enable = gaming-host true; }; - hardware.steam-hardware.enable = true; + hardware.steam-hardware.enable = gaming-host true; - environment = { + environment = gaming-host { systemPackages = with pkgs; [ mangohud protonup @@ -38,7 +42,7 @@ }; # SteamVR kernel patch for AMDGPU - boot.kernelPatches = [ + boot.kernelPatches = gaming-host [ { name = "amdgpu-ignore-ctx-privileges"; patch = pkgs.fetchpatch { diff --git a/unfree.nix b/unfree.nix index 371fd3da..6675cc39 100644 --- a/unfree.nix +++ b/unfree.nix @@ -2,7 +2,5 @@ allowed = [ "steam" "steam-unwrapped" - - "android-studio-stable" ]; }