about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-02-12 21:25:23 +0900
committersefidel <contact@sefidel.net>2023-02-14 23:38:19 +0900
commitadf6baa00e038e49cf477160eeddc886efced2b4 (patch)
tree6c6abc15b2901a90fef4a13bcc70bf72f2d029a9
parentae0ee6e87c1f3272362df907e97166cb3a6fdc2a (diff)
downloadnixrc-adf6baa00e038e49cf477160eeddc886efced2b4.tar.gz
nixrc-adf6baa00e038e49cf477160eeddc886efced2b4.zip
feat(nixos/alpha): use avahi for printers
-rw-r--r--nixos/alpha/configuration.nix10
1 files changed, 3 insertions, 7 deletions
diff --git a/nixos/alpha/configuration.nix b/nixos/alpha/configuration.nix
index 332c25a..8e366e2 100644
--- a/nixos/alpha/configuration.nix
+++ b/nixos/alpha/configuration.nix
@@ -138,13 +138,9 @@
   hardware.bluetooth.enable = true;
 
   services.printing.enable = true;
-  services.printing.drivers = [ pkgs.gutenprint pkgs.samsung-unified-linux-driver pkgs.brgenml1lpr pkgs.brgenml1cupswrapper ];
-
-  nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem
-    (lib.getName pkg) [
-    "samsung-UnifiedLinuxDriver"
-    "brgenml1lpr"
-  ];
+  services.avahi.enable = true;
+  services.avahi.nssmdns = true;
+  services.avahi.openFirewall = true;
 
   services.greetd = {
     enable = true;