From 4da2c85fb17ecc35c61c59b985f5bc1b9f847698 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 3 Apr 2021 10:15:10 -0700 Subject: [PATCH] 'Fix' printer driver, set timezone --- config/sites/seattle.nix | 3 +++ lib/fudo/hosts.nix | 2 ++ packages/hll2380dw-cups.nix | 3 ++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/config/sites/seattle.nix b/config/sites/seattle.nix index 0fd0a52..2a1a1b4 100644 --- a/config/sites/seattle.nix +++ b/config/sites/seattle.nix @@ -37,6 +37,9 @@ in { services.printing = { enable = true; drivers = [ + pkgs.brlaser + pkgs.brgenml1lpr + pkgs.brgenml1cupswrapper pkgs.hll2380dw-cups ]; }; diff --git a/lib/fudo/hosts.nix b/lib/fudo/hosts.nix index b3ca95e..efcea43 100644 --- a/lib/fudo/hosts.nix +++ b/lib/fudo/hosts.nix @@ -138,6 +138,8 @@ in { hosts = { "127.0.0.1" = [ "${hostname}.${domain-name}" "${hostname}" ]; }; }; + time.timeZone = site.timezone; + krb5.libdefaults.default_realm = domain.gssapi-realm; services.cron.mailto = domain.admin-email; diff --git a/packages/hll2380dw-cups.nix b/packages/hll2380dw-cups.nix index b0ed6dd..4e9059c 100644 --- a/packages/hll2380dw-cups.nix +++ b/packages/hll2380dw-cups.nix @@ -22,12 +22,13 @@ stdenv.mkDerivation rec { coreutils ghostscript gnugrep gnused ]} mkdir -p $out/lib/cups/filter/ - ln -s $out/opt/brother/Printers/HLL2380DW/cupswrapper/brother_lpdwrapper_HLL2380W \ + ln -s $out/opt/brother/Printers/HLL2380DW/cupswrapper/brother_lpdwrapper_HLL2380DW \ $out/lib/cups/filter/brother_lpdwrapper_HLL2380DW ln -s $out/opt/brother/Printers/HLL2380DW/paperconfigml1 \ $out/lib/cups/filter/ mkdir -p $out/share/cups/model ln -s $out/opt/brother/Printers/HLL2380DW/cupswrapper/brother-HLL2380DW-cups-en.ppd $out/share/cups/model/ + touch $out/HI ''; meta = with stdenv.lib; {