update system

This commit is contained in:
2026-01-05 13:59:57 +01:00
parent 6cb301eb81
commit 648380f91b
3 changed files with 26 additions and 24 deletions

36
flake.lock generated
View File

@@ -44,11 +44,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1766881808, "lastModified": 1767556355,
"narHash": "sha256-JR7A2xS3EBPWFeONzhqez5vp7nKEsp7eLj2Ks210Srk=", "narHash": "sha256-RDTUBDQBi9D4eD9iJQWtUDN/13MDLX+KmE+TwwNUp2s=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "d2e0458d6531885600b346e161c38790dc356fa8", "rev": "f894bc4ffde179d178d8deb374fcf9855d1a82b7",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -91,11 +91,11 @@
"xwayland-satellite-unstable": "xwayland-satellite-unstable" "xwayland-satellite-unstable": "xwayland-satellite-unstable"
}, },
"locked": { "locked": {
"lastModified": 1766765523, "lastModified": 1767544157,
"narHash": "sha256-DCk3GKdKZNjpvNuDy9ZVfVwCy3tlm96/UZnYkJO7N44=", "narHash": "sha256-DVTMOUd4uHkDcZXWAqOS+Pa0M9a27G1Ya3B7SFG6BQs=",
"owner": "sodiboo", "owner": "sodiboo",
"repo": "niri-flake", "repo": "niri-flake",
"rev": "a3e638c75d07de759421e6f34bd69c3f9a0a3567", "rev": "d0e2c4bebf9d0b879410736f7abce628976bfb92",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -124,11 +124,11 @@
"niri-unstable": { "niri-unstable": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1766751930, "lastModified": 1767530622,
"narHash": "sha256-83/YSW6c58i/iwGzAFApuMy6MCgoIaROeCcoIGh+ViU=", "narHash": "sha256-ywnL1cc0A6fni7m859ImiBYA8DlXXJ+5OXIlcBqJ2B0=",
"owner": "YaLTeR", "owner": "YaLTeR",
"repo": "niri", "repo": "niri",
"rev": "b5640d5293ad8dca06cb447692ea7cbb21680eb1", "rev": "54c2e2ab476629d17fdba861895f58e7cdac32ab",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -155,11 +155,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1766651565, "lastModified": 1767379071,
"narHash": "sha256-QEhk0eXgyIqTpJ/ehZKg9IKS7EtlWxF3N7DXy42zPfU=", "narHash": "sha256-EgE0pxsrW9jp9YFMkHL9JMXxcqi/OoumPJYwf+Okucw=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "3e2499d5539c16d0d173ba53552a4ff8547f4539", "rev": "fb7944c166a3b630f177938e478f0378e64ce108",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -171,11 +171,11 @@
}, },
"nixpkgs-stable": { "nixpkgs-stable": {
"locked": { "locked": {
"lastModified": 1766736597, "lastModified": 1767480499,
"narHash": "sha256-BASnpCLodmgiVn0M1MU2Pqyoz0aHwar/0qLkp7CjvSQ=", "narHash": "sha256-8IQQUorUGiSmFaPnLSo2+T+rjHtiNWc+OAzeHck7N48=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "f560ccec6b1116b22e6ed15f4c510997d99d5852", "rev": "30a3c519afcf3f99e2c6df3b359aec5692054d92",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -194,11 +194,11 @@
"systems": "systems_2" "systems": "systems_2"
}, },
"locked": { "locked": {
"lastModified": 1766918207, "lastModified": 1767553127,
"narHash": "sha256-G/Msy+w6e6W5Z517draGcMC0Fqpl4cfutZS5ijndpyM=", "narHash": "sha256-H6JzPMmvBYlGjIBgrHIS2dFXh05h4bwMJTZTn3IGVtc=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixvim", "repo": "nixvim",
"rev": "51ae9913767528723397e1b227bd32a080058bb5", "rev": "3d7bcda3d163c1c38e231f81e0e90155b7b9e9bf",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -33,9 +33,8 @@
prismlauncher prismlauncher
# chat apps # chat apps
vesktop # vesktop
discord discord
element-desktop
thunderbird thunderbird
signal-desktop signal-desktop
# cinny-desktop # cinny-desktop
@@ -47,8 +46,8 @@
# creative # creative
gimp3 gimp3
inkscape-with-extensions inkscape-with-extensions
scribus # scribus
# audacity audacity
pinta pinta
losslesscut-bin losslesscut-bin
shotcut shotcut

View File

@@ -34,6 +34,7 @@ in
"alsa.components" = "USB046d:0b1c"; "alsa.components" = "USB046d:0b1c";
"alsa.resolution_bits" = bitrate; "alsa.resolution_bits" = bitrate;
}; };
hidrawPath = "/dev/input/by-id/usb-Logitech_A50-if08-hidraw";
nodeNameIn = "astro-a50-eq-harman-in"; nodeNameIn = "astro-a50-eq-harman-in";
in in
{ {
@@ -62,7 +63,7 @@ in
{ {
name = "libpipewire-module-parametric-equalizer"; name = "libpipewire-module-parametric-equalizer";
args = { args = {
"equalizer.filepath" = builtins.toString ./astro-a50-harman.txt; "equalizer.filepath" = toString ./astro-a50-harman.txt;
"equalizer.description" = "${name} (Harman EQ)"; "equalizer.description" = "${name} (Harman EQ)";
"capture.props" = { "capture.props" = {
"node.name" = nodeNameIn; "node.name" = nodeNameIn;
@@ -82,14 +83,16 @@ in
}; };
Install.WantedBy = [ "default.target" ]; Install.WantedBy = [ "default.target" ];
Path.PathExists = hidrawPath;
Service = { Service = {
Restart = "always"; Restart = "always";
RestartSec = 10;
ExecStart = lib.getExe ( ExecStart = lib.getExe (
pkgs.writeShellApplication { pkgs.writeShellApplication {
name = "astro-dock-detect"; name = "astro-dock-detect";
runtimeEnv = { runtimeEnv = {
HID_DEVICE = "/dev/input/by-id/usb-Logitech_A50-if08-hidraw"; HID_DEVICE = hidrawPath;
HEADSET_NAME = nodeNameIn; HEADSET_NAME = nodeNameIn;
SPEAKERS_NAME = cfg.sinkWhenDocked; SPEAKERS_NAME = cfg.sinkWhenDocked;
}; };