diff --git a/nixos/modules/services/misc/devmon.nix b/nixos/modules/services/misc/devmon.nix index 7a1f7c2e079e..9dc8fee2964b 100644 --- a/nixos/modules/services/misc/devmon.nix +++ b/nixos/modules/services/misc/devmon.nix @@ -18,11 +18,13 @@ in { }; config = mkIf cfg.enable { - systemd.services.devmon = { + systemd.user.services.devmon = { description = "devmon automatic device mounting daemon"; - wantedBy = [ "multi-user.target" ]; - path = [ pkgs.udevil ]; + wantedBy = [ "default.target" ]; + path = [ pkgs.udevil pkgs.procps pkgs.udisks2 pkgs.which ]; serviceConfig.ExecStart = "${pkgs.udevil}/bin/devmon"; }; + + services.udisks2.enable = true; }; }