diff options
author | aszlig <aszlig@nix.build> | 2022-03-24 19:46:19 +0100 |
---|---|---|
committer | aszlig <aszlig@nix.build> | 2022-03-24 20:11:41 +0100 |
commit | e7c7e67a4692357de28405afe9ec8319780bc36f (patch) | |
tree | 629179530a2a10b82668aa5c5f97a3ab3df1b9cf | |
parent | f05a7eb2f668d74a00d6582083ac46bfa452baf2 (diff) |
dnyarri: Add default printer
This is one of the few things that I originally added manually, simply because usually printing is not something I do regurarily. Since I had to re-do the CUPS config a few weeks ago, I decided to instead switch to ensurePrinters, simply because it makes it easier to just remove all the CUPS state and get to a known working configuration in the event that something breaks. Signed-off-by: aszlig <aszlig@nix.build>
-rw-r--r-- | machines/aszlig/dnyarri.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/machines/aszlig/dnyarri.nix b/machines/aszlig/dnyarri.nix index 97f2c73c..b670871d 100644 --- a/machines/aszlig/dnyarri.nix +++ b/machines/aszlig/dnyarri.nix @@ -22,6 +22,16 @@ in { nix.maxJobs = 24; + hardware.printers.ensureDefaultPrinter = "Bunti"; + hardware.printers.ensurePrinters = lib.singleton { + name = "Bunti"; + deviceUri = "hp:/usb/HP_Color_LaserJet_2700?serial=00CNFNL14079"; + model = "HP/hp-color_laserjet_2700-ps.ppd.gz"; + location = "Living room"; + description = "Color laser printer"; + ppdOptions.PageSize = "A4"; + }; + boot = { loader.systemd-boot.enable = true; loader.grub.enable = false; |