kw.dns Home fix

This commit is contained in:
kat witch 2021-08-08 21:48:32 +01:00
parent 95dc7b1cb6
commit 02c8366331
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
3 changed files with 41 additions and 1 deletions

View file

@ -5,6 +5,7 @@
imports = with (import (sources.nixexprs + "/modules")).home-manager; [ base16 syncplay konawall i3gopher weechat shell ] ++ [
./vim.nix
./fvwm.nix
./dns.nix
./deploy.nix
./theme.nix
./secrets.nix

View file

@ -0,0 +1,39 @@
{ config, superConfig, lib, tf, ... }:
/*
This module:
* Provides options for setting the domain/tld/... used by default in my service configs.
*/
with lib;
{
options.kw.dns = {
email = mkOption {
type = types.nullOr types.str;
default = "";
};
tld = mkOption {
type = types.nullOr types.str;
default = "";
};
domain = mkOption {
type = types.nullOr types.str;
default = "";
};
ygg_prefix = mkOption {
type = types.nullOr types.str;
default = "";
};
ipv4 = mkOption {
type = types.str;
};
ipv6 = mkOption {
type = types.str;
};
dynamic = mkEnableOption "Enable Glauca Dynamic DNS Updater";
};
config = {
kw.dns = superConfig.kw.dns;
};
}

View file

@ -5,7 +5,7 @@ with lib;
{
options.home-manager.users = mkOption {
type = types.attrsOf (types.submoduleWith {
modules = [ ../../modules/home ];
modules = singleton ../../modules/home;
specialArgs = {
inherit sources tf;
superConfig = config;