2023-11-10 03:10:06 +00:00
|
|
|
jsonData: { lib, ... }:
|
2021-11-15 10:02:05 +00:00
|
|
|
{
|
2023-11-16 00:00:11 +00:00
|
|
|
selfprivacy = jsonData // {
|
2022-07-19 12:18:46 +00:00
|
|
|
hostname = lib.attrsets.attrByPath [ "hostname" ] null jsonData;
|
|
|
|
domain = lib.attrsets.attrByPath [ "domain" ] null jsonData;
|
|
|
|
timezone = lib.attrsets.attrByPath [ "timezone" ] "Europe/Uzhgorod" jsonData;
|
2023-03-17 11:50:54 +00:00
|
|
|
stateVersion = lib.attrsets.attrByPath [ "stateVersion" ] "22.05" jsonData;
|
2022-07-19 12:18:46 +00:00
|
|
|
username = lib.attrsets.attrByPath [ "username" ] null jsonData;
|
|
|
|
hashedMasterPassword = lib.attrsets.attrByPath [ "hashedMasterPassword" ] null jsonData;
|
|
|
|
sshKeys = lib.attrsets.attrByPath [ "sshKeys" ] [ ] jsonData;
|
2022-11-07 22:44:09 +00:00
|
|
|
dns = {
|
|
|
|
provider = lib.attrsets.attrByPath [ "dns" "provider" ] "CLOUDFLARE" jsonData;
|
2022-11-16 08:02:20 +00:00
|
|
|
useStagingACME = lib.attrsets.attrByPath [ "dns" "useStagingACME" ] false jsonData;
|
2022-11-07 22:44:09 +00:00
|
|
|
};
|
|
|
|
backup = {
|
|
|
|
bucket = lib.attrsets.attrByPath [ "backup" "bucket" ] (lib.attrsets.attrByPath [ "backblaze" "bucket" ] "" jsonData) jsonData;
|
|
|
|
};
|
|
|
|
server = {
|
|
|
|
provider = lib.attrsets.attrByPath [ "server" "provider" ] "HETZNER" jsonData;
|
2022-07-19 12:18:46 +00:00
|
|
|
};
|
|
|
|
ssh = {
|
|
|
|
enable = lib.attrsets.attrByPath [ "ssh" "enable" ] true jsonData;
|
|
|
|
rootKeys = lib.attrsets.attrByPath [ "ssh" "rootKeys" ] [ "" ] jsonData;
|
|
|
|
passwordAuthentication = lib.attrsets.attrByPath [ "ssh" "passwordAuthentication" ] true jsonData;
|
|
|
|
};
|
2022-08-26 10:21:05 +00:00
|
|
|
email = {
|
|
|
|
location = lib.attrsets.attrByPath [ "email" "location" ] "sda1" jsonData;
|
|
|
|
};
|
2022-07-19 12:18:46 +00:00
|
|
|
users = lib.attrsets.attrByPath [ "users" ] [ ] jsonData;
|
2022-08-26 10:21:05 +00:00
|
|
|
volumes = lib.attrsets.attrByPath [ "volumes" ] [ ] jsonData;
|
2021-11-15 10:02:05 +00:00
|
|
|
};
|
|
|
|
}
|