mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
kw.dns Home fix
This commit is contained in:
parent
95dc7b1cb6
commit
02c8366331
3 changed files with 41 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
39
config/modules/home/dns.nix
Normal file
39
config/modules/home/dns.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue