1
0
Fork 0

package(technitium-dns-server): switch module to own package override

This commit is contained in:
Philipp 2025-07-03 11:30:12 +02:00
parent 751d47feea
commit 3fb1c730ce
Signed by: Philipp
GPG key ID: 9EBD8439AFBAB750
2 changed files with 30 additions and 10 deletions

View file

@ -1,26 +1,24 @@
{
config,
lib,
pkgs,
config,
namespace,
...
}:
with lib;
with lib.${namespace};
let
cfg = config.${namespace}.services.technitium-dns-server;
inherit (lib)
mkEnableOption
mkPackageOption
mkOption
mkIf
types
;
in
{
options.${namespace}.services.technitium-dns-server = {
enable = mkEnableOption "Technitium DNS Server";
package = mkPackageOption pkgs "technitium-dns-server" { };
package = mkOption {
description = "The package of Technitium to use.";
type = types.package;
default = pkgs.awesome-flake.technitium-dns-server;
};
openFirewall = mkOption {
type = types.bool;