chore: printing, tailscale, and opencode
This commit is contained in:
@@ -50,6 +50,7 @@ in
|
||||
git = enabled;
|
||||
k9s = enabled;
|
||||
nvim = enabled;
|
||||
opencode = enabled;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
24
modules/nixos/services/printing/default.nix
Normal file
24
modules/nixos/services/printing/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,4 +1,8 @@
|
||||
{ namespace, lib, pkgs, ... }:
|
||||
{ namespace
|
||||
, lib
|
||||
, pkgs
|
||||
, ...
|
||||
}:
|
||||
let
|
||||
inherit (lib.${namespace}) enabled;
|
||||
in
|
||||
@@ -36,6 +40,11 @@ in
|
||||
|
||||
services = {
|
||||
avahi = enabled;
|
||||
printing = {
|
||||
enable = true;
|
||||
drivers = [ pkgs.gutenprint ];
|
||||
};
|
||||
tailscale = enabled;
|
||||
ydotool = enabled;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user