add den pattern

This commit is contained in:
Armel van Ravels
2026-08-14 15:08:14 +02:00
parent 6c1074e3fd
commit 00a8168ef5
92 changed files with 738 additions and 506 deletions

View File

@@ -0,0 +1,47 @@
{ config, lib, pkgs, ... }:
let
dirModules = config.features.modules.hardware or { };
in
{
config = lib.mkIf ((dirModules.enable or false) && (dirModules.printing.enable or true)) {
environment.systemPackages = with pkgs; [
cnijfilter2
];
services.printing = {
enable = true;
drivers = [ pkgs.cnijfilter2 ];
};
services.avahi = {
enable = true;
nssmdns4 = true;
openFirewall = true;
};
hardware.printers = {
ensurePrinters = [
{
name = "CanonTS3100";
location = "Home";
deviceUri = "dnssd://Canon%20TS3100%20series._ipp._tcp.local/?uuid=00000000-0000-1000-8000-0018271a7e44";
model = "canonts3100.ppd";
ppdOptions = {
PageSize = "A4";
};
}
];
ensureDefaultPrinter = "CanonTS3100";
};
# for samba
networking.hosts = {
"192.168.68.60" = [
"2C2919000000.local"
"2C2919000000"
];
};
};
}