Add printing module
This commit is contained in:
parent
7c912db2b5
commit
e378e97534
3 changed files with 23 additions and 1 deletions
|
@ -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 = {
|
||||||
|
|
|
@ -2,5 +2,6 @@
|
||||||
imports = [
|
imports = [
|
||||||
./desktop
|
./desktop
|
||||||
./openssh
|
./openssh
|
||||||
|
./printing
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
18
nixos/modules/services/printing/default.nix
Normal file
18
nixos/modules/services/printing/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue