chore: printing, tailscale, and opencode

This commit is contained in:
2026-01-18 14:16:41 -05:00
parent 68fada8d38
commit 3a67a3fe99
3 changed files with 35 additions and 1 deletions

View File

@@ -0,0 +1,24 @@
{ config
, lib
, namespace
, ...
}:
let
inherit (lib) mkIf mkEnableOption types;
inherit (lib.${namespace}) mkOpt;
cfg = config.${namespace}.services.printing;
in
{
options.${namespace}.services.printing = with types; {
enable = mkEnableOption "enable printing service";
drivers = mkOpt (listOf package) [ ] "print drivers to use";
};
config = mkIf cfg.enable {
services.printing = {
enable = true;
drivers = cfg.drivers;
};
};
}