Skip to content

Commit

Permalink
nixos/printing: set wantedBy to printer.target if startWhenNeeded
Browse files Browse the repository at this point in the history
Upstream sets wantedBy to [ multi-user.target printer.target ] so old option
would always start cups on multi-user.target
  • Loading branch information
hackerncoder committed Nov 23, 2024
1 parent 0b8cd83 commit 99c06e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/services/printing/cupsd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ in
};

systemd.services.cups =
{ wantedBy = optionals (!cfg.startWhenNeeded) [ "multi-user.target" ];
{ wantedBy = optionals (cfg.startWhenNeeded) [ "printer.target" ];
wants = [ "network.target" ];
after = [ "network.target" ];

Expand Down

0 comments on commit 99c06e4

Please sign in to comment.