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
|
|
|
};
|
|
|
|
bitwarden = {
|
|
|
|
enable = lib.attrsets.attrByPath [ "bitwarden" "enable" ] false jsonData;
|
2022-08-26 10:21:05 +00:00
|
|
|
location = lib.attrsets.attrByPath [ "bitwarden" "location" ] "sda1" jsonData;
|
2022-07-19 12:18:46 +00:00
|
|
|
};
|
|
|
|
gitea = {
|
|
|
|
enable = lib.attrsets.attrByPath [ "gitea" "enable" ] false jsonData;
|
2022-08-26 10:21:05 +00:00
|
|
|
location = lib.attrsets.attrByPath [ "gitea" "location" ] "sda1" jsonData;
|
2022-07-19 12:18:46 +00:00
|
|
|
};
|
|
|
|
pleroma = {
|
|
|
|
enable = lib.attrsets.attrByPath [ "pleroma" "enable" ] false jsonData;
|
2022-08-26 10:21:05 +00:00
|
|
|
location = lib.attrsets.attrByPath [ "pleroma" "location" ] "sda1" jsonData;
|
2022-07-19 12:18:46 +00:00
|
|
|
};
|
|
|
|
jitsi = {
|
|
|
|
enable = lib.attrsets.attrByPath [ "jitsi" "enable" ] false jsonData;
|
|
|
|
};
|
|
|
|
ocserv = {
|
|
|
|
enable = lib.attrsets.attrByPath [ "ocserv" "enable" ] false jsonData;
|
|
|
|
};
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|