Add printing module

This commit is contained in:
Tibo De Peuter 2023-10-19 20:58:15 +02:00
parent 7c912db2b5
commit e378e97534
3 changed files with 23 additions and 1 deletions

View file

@ -15,7 +15,10 @@
ssh.enable = true; ssh.enable = true;
zellij.enable = true; zellij.enable = true;
}; };
services.desktop.gnome.enable = true; services = {
desktop.gnome.enable = true;
printing.enable = true;
};
}; };
boot = { boot = {

View file

@ -2,5 +2,6 @@
imports = [ imports = [
./desktop ./desktop
./openssh ./openssh
./printing
]; ];
} }

View file

@ -0,0 +1,18 @@
{ config, lib, pkgs, ... }:
let
cfg = config.sisyphus.services.printing;
in {
options.sisyphus.services.printing.enable = lib.mkEnableOption "Printing";
config = lib.mkIf cfg.enable {
services = {
printing.enable = true;
avahi = {
enable = true;
nssmdns = true;
openFirewall = true;
};
};
};
}