dotfiles
My PC Dotfiles & Websitegit clone https://github.com/maydayv7/dotfiles
commit eef3947dd92861ace24054e2795a84785da8bb04 parent 509466cdd4193621308fa008d41e25affd9d4fd8 Author: maydayv7 <maydayv7@gmail.com> Date: Mon, 3 Mar 2025 02:05:09 +0530 feat: Steam Also add `spot` client for Spotify and some Hyprland tweaks
Diffstat:
| M | devices/valkyrie/default.nix | | | 4 | +++- |
| M | files/hyprland/waybar.css | | | 4 | ++++ |
| M | modules/apps/games.nix | | | 38 | ++++++++++++++++++++++++++------------ |
| M | modules/apps/spotify.nix | | | 4 | ++-- |
| M | modules/apps/vscode.nix | | | 1 | - |
| M | modules/gui/desktop/hyprland/apps/panel.nix | | | 18 | +++++++++--------- |
| M | modules/gui/desktop/hyprland/apps/security.nix | | | 2 | +- |
| M | modules/gui/desktop/hyprland/apps/settings.nix | | | 2 | +- |
| M | modules/gui/desktop/hyprland/apps/utilities.nix | | | 3 | ++- |
9 files changed, 48 insertions(+), 28 deletions(-)
diff --git a/devices/valkyrie/default.nix b/devices/valkyrie/default.nix @@ -22,7 +22,7 @@ }; vm = { - vfio = "on"; + vfio = "setup"; android.enable = false; }; }; @@ -33,12 +33,14 @@ list = [ "discord" "firefox" + "games" "git" "media" "notes" "office" "spotify" "vscode" + "wine" ]; }; diff --git a/files/hyprland/waybar.css b/files/hyprland/waybar.css @@ -84,6 +84,10 @@ window#waybar { margin-left: 8px; } +.modules-right #keyboard-state { + color: @base05; +} + #media .drawer box { margin-right: 3px; } diff --git a/modules/apps/games.nix b/modules/apps/games.nix @@ -4,7 +4,7 @@ pkgs, ... }: let - inherit (lib) mkForce mkIf; + inherit (lib) mkIf mkOverride; enable = builtins.elem "games" config.apps.list; wine = builtins.elem "wine" config.apps.list; in { @@ -20,15 +20,6 @@ in { } ]; - # Directories - user.persist.directories = [ - "Games" - ".cache/lutris" - ".config/lutris" - ".local/share/bottles" - ".local/share/lutris" - ]; - # Packages apps.wine.package = pkgs.gaming.wine-ge; environment.systemPackages = with pkgs; [ @@ -36,10 +27,33 @@ in { lutris ]; + # Steam + programs.steam = { + enable = true; + remotePlay.openFirewall = true; + dedicatedServer.openFirewall = true; + localNetworkGameTransfers.openFirewall = true; + }; + # Game Mode # See https://github.com/FeralInteractive/gamemode - hardware.cpu.mode = mkForce "performance"; - gui.fancy = mkForce false; + hardware.cpu.mode = mkOverride 51 "performance"; + gui.fancy = mkOverride 999 false; programs.gamemode.enable = true; + + # Directories + user.persist.directories = [ + "Games" + ".cache/lutris" + ".config/lutris" + ".local/share/bottles" + ".local/share/lutris" + + # Steam + ".local/share/applications" + ".local/share/icons/hicolor" + ".steam" + ".local/share/Steam" + ]; }; } diff --git a/modules/apps/spotify.nix b/modules/apps/spotify.nix @@ -10,10 +10,10 @@ in { ## Spotify Configuration ## config = lib.mkIf enable { - environment.systemPackages = with pkgs; [spotify spicetify-cli]; + environment.systemPackages = with pkgs; [spotify spot spicetify-cli]; user = { - persist.directories = [".config/spotify" ".cache/spotify"]; + persist.directories = [".config/spotify" ".cache/spotify" ".cache/spot"]; homeConfig = { imports = [inputs.spotify.homeManagerModules.default]; programs.spicetify = { diff --git a/modules/apps/vscode.nix b/modules/apps/vscode.nix @@ -64,7 +64,6 @@ in { ] ++ (with pkgs.code.vscode-marketplace; [ kisstkondoros.vscode-gutter-preview - vscode-org-mode.org-mode wayou.vscode-todo-highlight ]); }; diff --git a/modules/gui/desktop/hyprland/apps/panel.nix b/modules/gui/desktop/hyprland/apps/panel.nix @@ -17,7 +17,7 @@ in { }; # Environment Setup - home.packages = [pkgs.wttrbar]; + home.packages = [pkgs.unstable.wttrbar]; systemd.user = { services.waybar = { # nix-community/home-manager/pull/5785 @@ -154,11 +154,11 @@ in { on-click = "activate"; on-click-middle = "fullscreen"; on-click-right = "close"; - ignore-list = [ - "kitty-clip" - "kitty-dropterm" - "ulauncher" - ]; + ignore-list = ["ulauncher"]; + app_ids-mapping = { + kitty-clip = "diodon"; + kitty-dropterm = "yakuake"; + }; }; "group/menu" = { @@ -291,14 +291,14 @@ in { format = "{}°"; tooltip = true; interval = 3600; - exec = "wttrbar"; + exec = "wttrbar --date-format %d/%m --nerd"; return-type = "json"; }; clock = { interval = 1; - format = " {:%H:%M:%S}"; - format-alt = " {:%I:%M %Y, %d %B, %A}"; + format = " {:%H:%M:%S} "; + format-alt = " {:%I:%M %A, %d %B %Y} "; tooltip-format = "<tt><small>{calendar}</small></tt>"; calendar = { mode = "year"; diff --git a/modules/gui/desktop/hyprland/apps/security.nix b/modules/gui/desktop/hyprland/apps/security.nix @@ -54,7 +54,7 @@ in { timeouts = let audio = command: "${pkgs.writeShellScript "audio" '' - ${getExe pkgs.playerctl} status | grep Playing + ${getExe pkgs.playerctl} status | ${getExe pkgs.gnugrep} Playing if [ $? != 1 ]; then ${command}; fi ''}"; # Check if audio is playing shader = getExe pkgs.hyprshade; diff --git a/modules/gui/desktop/hyprland/apps/settings.nix b/modules/gui/desktop/hyprland/apps/settings.nix @@ -61,7 +61,7 @@ "$mod SHIFT, T, exec, pypr toggle term" ''$mod, V, exec, sh -c "hyprctl clients | grep 'class: clipse' || pypr show clip"'' "$mod, W, exec, firefox" - "$mod, Return, exec, ${runOnce "missioncenter"}" + "$mod, Return, exec, ${runOnce "resources"}" ", XF86Calculator, exec, qalculate-gtk" "$mod, Escape, exec, ${toggle "wlogout"} -p layer-shell" ]; diff --git a/modules/gui/desktop/hyprland/apps/utilities.nix b/modules/gui/desktop/hyprland/apps/utilities.nix @@ -14,14 +14,15 @@ in { custom.desktop-icons custom.kebihelp font-manager + gnome-clocks gnome-disk-utility hyprpicker - mission-center nwg-displays nwg-drawer overskride qalculate-gtk remmina + resources # Utilities custom.hyprutils