summaryrefslogtreecommitdiff
path: root/hosts/desktop/configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/desktop/configuration.nix')
-rw-r--r--hosts/desktop/configuration.nix20
1 files changed, 19 insertions, 1 deletions
diff --git a/hosts/desktop/configuration.nix b/hosts/desktop/configuration.nix
index a80cb60..7da98ae 100644
--- a/hosts/desktop/configuration.nix
+++ b/hosts/desktop/configuration.nix
@@ -1,4 +1,4 @@
-{ config, inputs, username, ... }:
+{ config, inputs, pkgs, username, ... }:
{
system.stateVersion = "25.05";
@@ -75,4 +75,22 @@
config.boot.kernelPackages.nct6687d
];
};
+ services.pipewire.wireplumber.extraConfig."99-disable-useless-devices"."monitor.alsa.rules" = [{
+ matches = [
+ { "device.name" = "~alsa_card.pci-0000_03_00.1*"; }
+ { "device.description" = "~USB Audio*"; }
+ ];
+ actions.update-props = { "device.disabled" = true; };
+ }];
+
+ systemd.user.services.zzz-presence = {
+ description = "Zenless Zone Zero Discord Rich Presence";
+ wantedBy = [ "default.target" ];
+
+ serviceConfig = {
+ ExecStart = "${pkgs.python3.withPackages (ps: [ ps.pypresence ])}/bin/python3 /etc/nixos/hosts/desktop/resources/zzz.py";
+ Restart = "always";
+ RestartSec = "10";
+ };
+ };
}