This commit is contained in:
Shelvacu
2024-10-26 18:38:25 -07:00
parent 1400df6df5
commit 4b2a048ed7
3 changed files with 11 additions and 1 deletions

View File

@@ -35,6 +35,13 @@ in
default = config.vacu.hostName;
};
vacu.nixvimPkg = mkOption { readOnly = true; };
vacu.systemKind = mkOption {
type = types.enum [
"minimal"
"desktop" # need a better name for this; should include laptops; everything I intend to get computery-stuff done on.
"container"
];
};
vacu.minimal = lib.mkEnableOption "minimal system";
};
config = {

View File

@@ -11,7 +11,8 @@ let
] [
(lib.getExe config.vacu.wrappedSops)
(builtins.toString ../../secrets/misc/cloudns.json)
] (builtins.readFile ./script.py);
]
(builtins.readFile ./script.py);
in
pkgs.writers.writePython3Bin "dns-update" {
libraries = [ pkgs.python3Packages.httpx ];

View File

@@ -9,6 +9,8 @@ import httpx
SOPS_BIN = '@sops@'
DNS_SECRETS_FILE = '@dns_secrets_file@'
data_str = '@data@'
DATA = json.loads(data_str)
secrets_json = subprocess.check_output([SOPS_BIN, "-d", DNS_SECRETS_FILE])
secrets = json.loads(secrets_json)