From e9a3ead518e703a5655d81b85a89c109ffca3c5c Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Sat, 4 Jan 2025 15:20:09 +0100 Subject: [PATCH] renamed hardware.pulseaudio to services.pulseaudio --- home-manager/desktop/default.nix | 6 ++++-- nixos/desktop/default.nix | 4 +--- nixos/hosts/shodan/configuration.nix | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/home-manager/desktop/default.nix b/home-manager/desktop/default.nix index a6f382d..c17786f 100644 --- a/home-manager/desktop/default.nix +++ b/home-manager/desktop/default.nix @@ -72,6 +72,7 @@ Unit = { Description = "Auto sync Nextcloud"; After = "network-online.target"; + PartOf = ["nextcloud-autosyncs.target"]; }; Service = { Type = "simple"; @@ -82,12 +83,13 @@ }; Install.WantedBy = ["multi-user.target"]; }; - services.nextcloud-autosyncs = { + targets.nextcloud-autosyncs = { Unit = { Description = "workers"; Requires = ["nextcloud-autosync@Music" "nextcloud-autosync@Pictures" "nextcloud-autosync@Scripts" "nextcloud-autosync@Videos" "nextcloud-autosync@Documents"]; PartOf = "nextcloud-autosyncs.target"; }; + Install.WantedBy = ["multi-user.target"]; }; timers.nextcloud-autosyncs = { Unit.Description = "Automatic sync files with Nextcloud when booted up after 5 minutes then rerun every 60 minutes"; @@ -97,7 +99,7 @@ }; # Nicely reload system units when changing configs - startServices = true; + startServices = "sd-switch"; }; home = { diff --git a/nixos/desktop/default.nix b/nixos/desktop/default.nix index 4c54db9..741eca6 100644 --- a/nixos/desktop/default.nix +++ b/nixos/desktop/default.nix @@ -183,12 +183,10 @@ # Enable bluetooth hardware bluetooth.enable = true; - - # Enable sound with pipewire. - pulseaudio.enable = false; }; security.rtkit.enable = true; + services.pulseaudio.enable = false; virtualisation.podman = { enable = true; dockerCompat = true; diff --git a/nixos/hosts/shodan/configuration.nix b/nixos/hosts/shodan/configuration.nix index b8d46aa..7139568 100644 --- a/nixos/hosts/shodan/configuration.nix +++ b/nixos/hosts/shodan/configuration.nix @@ -228,9 +228,9 @@ bluetooth.enable = true; # Enable sound with pipewire. - pulseaudio.enable = false; }; + services.pulseaudio.enable = false; users.users.lillian.extraGroups = ["decky" "tss" "input"]; # Enable completion of system packages by zsh