summary refs log tree commit diff stats
path: root/system/modules/hardware/printing.nix
blob: 96d3a9592ad01b9b52ab2f9cc437c4bf0ef1a6b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ config, pkgs, lib, ... }:

{ services.printing.enable = true;
  systemd.services.cups.wantedBy = lib.mkForce [];
  systemd.sockets.cups.wantedBy = [ "sockets.target" ];
  systemd.services.cups-browsed.wantedBy = lib.mkForce [];

  systemd.timers.cups-browsed = {
    description = "Delayed startup of CUPS Remote Printer Discovery";
    wantedBy = [ "timers.target" ];
    timerConfig = {
      OnActiveSec = "2 min";
    };
  };

  imports = [
    ../services/zeroconf.nix
  ];
}