summaryrefslogtreecommitdiff
path: root/hosts/toaster
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/toaster')
-rw-r--r--hosts/toaster/default.nix1
-rw-r--r--hosts/toaster/printer.nix17
2 files changed, 18 insertions, 0 deletions
diff --git a/hosts/toaster/default.nix b/hosts/toaster/default.nix
index 2b8577b..59b6f53 100644
--- a/hosts/toaster/default.nix
+++ b/hosts/toaster/default.nix
@@ -7,6 +7,7 @@
./network
./secure-boot.nix
./zfs.nix
+ ./printer.nix
];
sops.defaultSopsFile = ./secrets.yaml;
diff --git a/hosts/toaster/printer.nix b/hosts/toaster/printer.nix
new file mode 100644
index 0000000..385df43
--- /dev/null
+++ b/hosts/toaster/printer.nix
@@ -0,0 +1,17 @@
+{ pkgs, ... }:
+{
+ # autodiscovery
+ services.avahi = {
+ enable = true;
+ nssmdns4 = true;
+ openFirewall = true;
+ };
+
+ services.printing = {
+ enable = true;
+ drivers = with pkgs; [
+ cups-filters
+ cups-browsed
+ ];
+ };
+}