all repos — nixfiles @ 05dd85210e465caa44ef7254f2781b2d12ba2882

System and user configuration, managed by nix and home-manager

system/settings/hardware/printing.nix (view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
  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";
    };
  };

  programs.system-config-printer.enable = true;

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