about summary refs log tree commit diff
path: root/machines/aszlig
diff options
context:
space:
mode:
Diffstat (limited to 'machines/aszlig')
-rw-r--r--machines/aszlig/dnyarri.nix14
1 files changed, 6 insertions, 8 deletions
diff --git a/machines/aszlig/dnyarri.nix b/machines/aszlig/dnyarri.nix
index 30103a86..b6082451 100644
--- a/machines/aszlig/dnyarri.nix
+++ b/machines/aszlig/dnyarri.nix
@@ -56,14 +56,12 @@ in {
 
   # This is very ugly and I really want to avoid non-free packages on all
   # of my workstations. But right now I need to get rid of useless paper.
-  nixpkgs.config = {
-    allowUnfreePredicate = pkg: let
-      inherit (builtins.parseDrvName pkg.name) name;
-    in name == "hplip";
-    packageOverrides = super: {
-      hplip = super.hplip.override { withPlugin = true; };
-    };
-  };
+  nixpkgs.config.allowUnfreePredicate = pkg: let
+    inherit (builtins.parseDrvName pkg.name) name;
+  in name == "hplip";
+  nixpkgs.overlays = lib.singleton (lib.const (super: {
+    hplip = super.hplip.override { withPlugin = true; };
+  }));
 
   hardware.sane.enable = true;
   hardware.sane.extraBackends = [ pkgs.hplip ];