summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authoradikro <adikro@disroot.org>2026-01-06 22:34:59 +0100
committeradikro <adikro@disroot.org>2026-01-06 22:34:59 +0100
commit1abd23db1e18266ffe8035daea1aa3153e736428 (patch)
treed587898eec255dbed6c9ce1079abe769aac6fdab /hosts
parent96b694b5251957bc6d33760462d28ee4864b0353 (diff)
mpv fixed, configured swaylock, and a lot of other stuff
Diffstat (limited to 'hosts')
-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";
+ };
+ };
}