feat: printing

This commit is contained in:
KoenDR06 2026-01-02 19:43:51 +01:00
parent d77db0d379
commit 7af0994014
4 changed files with 27 additions and 0 deletions

View file

@ -50,6 +50,7 @@
ssh.enable = true;
syncthing.enable = true;
tailscale.enable = true;
printing.enable = true;
};
apps = {

View file

@ -56,6 +56,7 @@
ssh.enable = true;
syncthing.enable = true;
tailscale.enable = true;
printing.enable = true;
};
apps = {

View file

@ -4,5 +4,6 @@
./ssh.nix
./syncthing.nix
./tailscale.nix
./printing.nix
];
}

View file

@ -0,0 +1,24 @@
{
lib,
config,
...
}: let
inherit (lib) mkEnableOption mkIf;
cfg = config.horseman.network.printing;
in {
options = {
horseman.network.printing = {
enable = mkEnableOption "Turns on standard printing config";
};
};
config = mkIf cfg.enable {
services.printing.enable = true;
services.avahi = {
enable = true;
nssmdns4 = true;
openFirewall = true;
};
};
}