Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 1 | { pkgs, ... }: { |
Skyler Grey | 464794f | 2022-09-02 00:02:18 +0100 | [diff] [blame] | 2 | config = { |
Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 3 | environment.systemPackages = [ pkgs.gtklp ]; |
Skyler Grey | 464794f | 2022-09-02 00:02:18 +0100 | [diff] [blame] | 4 | services = { |
| 5 | printing = { |
| 6 | enable = true; |
Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 7 | drivers = with pkgs; [ foomatic-filters hplip cups-filters ]; |
Skyler Grey | 3b080f6 | 2022-10-31 00:14:44 +0000 | [diff] [blame] | 8 | browsing = true; |
| 9 | browsedConf = '' |
| 10 | BrowseDNSSDSubTypes _cups,_print |
| 11 | BrowseLocalProtocols all |
| 12 | BrowseRemoteProtocols all |
| 13 | CreateIPPPrinterQueues All |
Skyler Grey | 464794f | 2022-09-02 00:02:18 +0100 | [diff] [blame] | 14 | |
Skyler Grey | 3b080f6 | 2022-10-31 00:14:44 +0000 | [diff] [blame] | 15 | BrowseProtocols all |
| 16 | ''; |
Skyler Grey | 464794f | 2022-09-02 00:02:18 +0100 | [diff] [blame] | 17 | }; |
| 18 | }; |
| 19 | |
| 20 | environment.persistence."/nix/persist".directories = [ |
| 21 | "/var/spool/cups" |
| 22 | "/etc/cups" |
| 23 | ]; |
| 24 | }; |
| 25 | } |