about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-02-18 20:07:41 +0900
committersefidel <contact@sefidel.net>2023-02-18 20:07:41 +0900
commit90e15b65fa4bf1ebf9ec1f2c788c9acbcfb8005a (patch)
tree8f4f2783e4409bf1caf28333131cab4f88cfb3a6 /nixos
parentae58864cc241ee44e3a70da3f7d09bf72eb80d40 (diff)
downloadnixrc-90e15b65fa4bf1ebf9ec1f2c788c9acbcfb8005a.tar.gz
nixrc-90e15b65fa4bf1ebf9ec1f2c788c9acbcfb8005a.zip
Revert "feat(nixos/alpha): use avahi for printers"
This reverts commit b576ee0a51164224ee1186f789bd15c042e9ed85.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/alpha/configuration.nix10
1 files changed, 7 insertions, 3 deletions
diff --git a/nixos/alpha/configuration.nix b/nixos/alpha/configuration.nix
index 558d57c..551bc03 100644
--- a/nixos/alpha/configuration.nix
+++ b/nixos/alpha/configuration.nix
@@ -135,9 +135,13 @@
   hardware.bluetooth.enable = true;
 
   services.printing.enable = true;
-  services.avahi.enable = true;
-  services.avahi.nssmdns = true;
-  services.avahi.openFirewall = 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.greetd = {
     enable = true;