wip
This commit is contained in:
@@ -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 = {
|
||||
|
@@ -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 ];
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user