aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2026-06-28 07:40:05 +0200
committerMartin Fischer <martin@push-f.com>2026-06-29 08:41:20 +0200
commita02ee67ecc3a4970d771b88c03b69394c606aa49 (patch)
treecea6f19d2b36952e2ae7f08f585d8bfcfa27adf0
parent0958ffd7dd871adad85416a0245180dbf26dec1a (diff)
feat: set up printer
-rw-r--r--nixos/hosts/ev/default.nix20
-rw-r--r--nixos/hosts/hamac/default.nix4
-rw-r--r--nixos/profiles/workstation/default.nix1
3 files changed, 25 insertions, 0 deletions
diff --git a/nixos/hosts/ev/default.nix b/nixos/hosts/ev/default.nix
index 7fcc724..9aa785c 100644
--- a/nixos/hosts/ev/default.nix
+++ b/nixos/hosts/ev/default.nix
@@ -193,6 +193,26 @@ in
musicDir = "/mnt/personal/music";
};
+ services.printing = {
+ enable = true;
+ listenAddresses = ["*:631"];
+ allowFrom = ["all"];
+ };
+ hardware.printers = {
+ ensurePrinters = [
+ {
+ name = "Brother";
+ description = "Brother HL-L2340D series";
+ deviceUri = "ipp://192.168.178.3/ipp/print";
+ model = "everywhere"; # IPP Everywhere - no driver needed
+ ppdOptions = {
+ PageSize = "A4";
+ };
+ }
+ ];
+ ensureDefaultPrinter = "Brother";
+ };
+
qbittorrent = {
user = "library";
webUiPort = ports.qbittorrent;
diff --git a/nixos/hosts/hamac/default.nix b/nixos/hosts/hamac/default.nix
index 0815373..f258606 100644
--- a/nixos/hosts/hamac/default.nix
+++ b/nixos/hosts/hamac/default.nix
@@ -27,6 +27,10 @@ in
time.timeZone = "Europe/Vienna";
+ environment.etc."cups/client.conf".text = ''
+ ServerName ev
+ '';
+
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. It‘s perfectly fine and recommended to leave
diff --git a/nixos/profiles/workstation/default.nix b/nixos/profiles/workstation/default.nix
index e5c2437..d9f42fd 100644
--- a/nixos/profiles/workstation/default.nix
+++ b/nixos/profiles/workstation/default.nix
@@ -88,6 +88,7 @@ in
'';
})
restic
+ cups
skim
unzip