From fa7bf090d29144044b59d461d0b798b37ab010a8 Mon Sep 17 00:00:00 2001 From: Kat Inskip Date: Thu, 17 Jul 2025 23:04:20 -0700 Subject: [PATCH] meep --- flake.lock | 6 +++--- home/environments/niri/autostart.nix | 27 +++++++++++++++++++++++-- home/environments/niri/binds.nix | 2 ++ home/environments/niri/niri.nix | 3 +++ home/environments/niri/window-rules.nix | 1 + home/profiles/gaming/fluidsynth.nix | 7 +++++++ nixos/profiles/gaming/lutris.nix | 2 ++ systems/goliath.nix | 5 +++-- systems/koishi.nix | 2 +- 9 files changed, 47 insertions(+), 8 deletions(-) create mode 100644 home/profiles/gaming/fluidsynth.nix diff --git a/flake.lock b/flake.lock index 9d560606..1437f0e9 100644 --- a/flake.lock +++ b/flake.lock @@ -559,11 +559,11 @@ ] }, "locked": { - "lastModified": 1752404984, - "narHash": "sha256-5UGgP+bym2awH/x+qsE9J87k+epfhT8Hk1ADiIP9CZM=", + "lastModified": 1752511172, + "narHash": "sha256-1CAta76qorRdi5EQMeWmodK0CTWbEZ708t3Q8Pu0eFI=", "owner": "kittywitch", "repo": "konawall-py", - "rev": "44723fe32d988855087fd9f178a264f0b5aabf15", + "rev": "196e1264e74071ed59b15e625808899012720c53", "type": "github" }, "original": { diff --git a/home/environments/niri/autostart.nix b/home/environments/niri/autostart.nix index f2018374..62b6e0f3 100644 --- a/home/environments/niri/autostart.nix +++ b/home/environments/niri/autostart.nix @@ -1,4 +1,4 @@ -{pkgs, ...}: { +{pkgs, config, ...}: { programs.niri.settings.spawn-at-startup = let import-gsettings = pkgs.writeShellScriptBin "import-gsettings" '' # usage: import-gsettings @@ -53,12 +53,35 @@ # program autostart { command = [ - "firefox" + "${pkgs.dbus}/bin/dbus-update-activation-environment" + "--all" ]; } { command = [ "discord" + "--enable-features=WaylandLinuxDrmSyncobj,UseOzonePlatform" + "--ozone-platform=wayland" + ]; + } + { + command = [ + "${pkgs.udiskie}/bin/udiskie" + ]; + } + { + command = [ + "${pkgs.pasystray}/bin/pasystray" + ]; + } + { + command = [ + "${pkgs.networkmanagerapplet}/bin/nm-applet" + ]; + } + { + command = [ + "firefox" ]; } ]; diff --git a/home/environments/niri/binds.nix b/home/environments/niri/binds.nix index ead5050b..bfaf37c0 100644 --- a/home/environments/niri/binds.nix +++ b/home/environments/niri/binds.nix @@ -138,6 +138,8 @@ in { "Mod+Shift+P".action.power-off-monitors = {}; # Kat + "XF86MonBrightnessUp".action.spawn = ["${pkgs.brightnessctl}/bin/brightnessctl" "-c" "backlight" "set" "5%+"]; + "XF86MonBrightnessDown".action.spawn = ["${pkgs.brightnessctl}/bin/brightnessctl" "-c" "backlight" "set" "5%-"]; "XF86AudioRaiseVolume".action.spawn = ["wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1+"]; "XF86AudioLowerVolume".action.spawn = ["wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1-"]; "XF86AudioMute".action.spawn = ["wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"]; diff --git a/home/environments/niri/niri.nix b/home/environments/niri/niri.nix index a402079b..71ea531f 100644 --- a/home/environments/niri/niri.nix +++ b/home/environments/niri/niri.nix @@ -72,6 +72,9 @@ in { color = config.palette.crust.hex; }; }; + debug = { + wait-for-frame-completion-in-pipewire = {}; + }; workspaces = { browser = {}; chat = {}; diff --git a/home/environments/niri/window-rules.nix b/home/environments/niri/window-rules.nix index 37ef21ae..a7bf2c2e 100644 --- a/home/environments/niri/window-rules.nix +++ b/home/environments/niri/window-rules.nix @@ -28,6 +28,7 @@ _: { { matches = [{app-id = "^steam_app_default$";}]; open-on-workspace = "vidya"; + open-floating = true; } { matches = [{app-id = "^spotify$";}]; diff --git a/home/profiles/gaming/fluidsynth.nix b/home/profiles/gaming/fluidsynth.nix new file mode 100644 index 00000000..2ad24c81 --- /dev/null +++ b/home/profiles/gaming/fluidsynth.nix @@ -0,0 +1,7 @@ +_: { + services = { + fluidsynth = { + enable = true; + }; + }; +} diff --git a/nixos/profiles/gaming/lutris.nix b/nixos/profiles/gaming/lutris.nix index 9580d67c..b39844c7 100644 --- a/nixos/profiles/gaming/lutris.nix +++ b/nixos/profiles/gaming/lutris.nix @@ -5,11 +5,13 @@ driversi686Linux.mesa ]; }; + services.flatpak.enable = true; programs.gamescope = { enable = true; package = pkgs.gamescope; }; environment.systemPackages = with pkgs; [ + protonplus (lutris.override { extraPkgs = pkgs: [ pkgs.gamescope diff --git a/systems/goliath.nix b/systems/goliath.nix index fc6c7b28..d7b5fc70 100644 --- a/systems/goliath.nix +++ b/systems/goliath.nix @@ -69,7 +69,7 @@ _: let konawall-py.settings = { source = "e621"; tags = [ - "-rating:s" + "rating:s" "-male/male" "-five_nights_at_freddy's" #"touhou" @@ -95,7 +95,7 @@ _: let niri.settings = { outputs = { "LG Electronics LG Ultra HD 0x0001AC91" = { - scale = 1.25; + scale = 1.0; }; }; environment = { @@ -110,6 +110,7 @@ _: let imports = (with tree.home.profiles; [ graphical + gaming ]) ++ (with tree.home.environments; [ #hyprland diff --git a/systems/koishi.nix b/systems/koishi.nix index 5e6c8b68..d4c9e2fd 100644 --- a/systems/koishi.nix +++ b/systems/koishi.nix @@ -66,7 +66,7 @@ _: let konawall-py.settings = { source = "konachan"; tags = [ - "-rating:s" + "-rating:e" ]; }; niri.settings = {