From cdf26994a3763944e0cbbcc10c35243aaa17d72a Mon Sep 17 00:00:00 2001 From: Richie Cahill Date: Wed, 1 Jan 2025 08:13:08 -0500 Subject: [PATCH] creating printing.nix I dont always need printing enable. this will allows me to quickly add the printing setting when i do --- .vscode/settings.json | 2 ++ common/optional/printing.nix | 7 +++++++ systems/bob/default.nix | 2 -- systems/muninn/default.nix | 2 -- systems/rhapsody-in-green/default.nix | 2 -- 5 files changed, 9 insertions(+), 6 deletions(-) create mode 100644 common/optional/printing.nix diff --git a/.vscode/settings.json b/.vscode/settings.json index 8359b83..c09b8fa 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -82,6 +82,7 @@ "globalprivacycontrol", "gparted", "gtts", + "gutenprint", "hass", "healthreport", "Heatsink", @@ -91,6 +92,7 @@ "hmac", "homeassistant", "HPKP", + "hplip", "htmlaboutaddons", "hurlenko", "hwloc", diff --git a/common/optional/printing.nix b/common/optional/printing.nix new file mode 100644 index 0000000..cfd3146 --- /dev/null +++ b/common/optional/printing.nix @@ -0,0 +1,7 @@ +{ pkgs, ... }: +{ + services.printing = { + enable = true; + drivers = with pkgs; [ gutenprint hplip ]; + }; +} diff --git a/systems/bob/default.nix b/systems/bob/default.nix index c556570..71b93a7 100644 --- a/systems/bob/default.nix +++ b/systems/bob/default.nix @@ -36,8 +36,6 @@ openssh.ports = [ 262 ]; - printing.enable = true; - snapshot_manager.enable = true; zfs = { diff --git a/systems/muninn/default.nix b/systems/muninn/default.nix index 5ade601..28c1057 100644 --- a/systems/muninn/default.nix +++ b/systems/muninn/default.nix @@ -47,8 +47,6 @@ openssh.ports = [ 295 ]; - printing.enable = true; - snapshot_manager.enable = true; zfs = { diff --git a/systems/rhapsody-in-green/default.nix b/systems/rhapsody-in-green/default.nix index 551779b..e62b11d 100644 --- a/systems/rhapsody-in-green/default.nix +++ b/systems/rhapsody-in-green/default.nix @@ -36,8 +36,6 @@ openssh.ports = [ 922 ]; - printing.enable = true; - snapshot_manager.enable = true; zfs = {