Use dot operator for attribute sets with 1 element

This commit is contained in:
coolneng 2021-04-15 12:34:38 +02:00
parent d5249bb625
commit cd2b98cca2
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
5 changed files with 21 additions and 33 deletions

View File

@ -31,9 +31,7 @@
address = "http://localhost:8118";
port = 8118;
};
bridge = {
permissions = { "@coolneng:coolneng.duckdns.org" = "admin"; };
};
bridge.permissions."@coolneng:coolneng.duckdns.org" = "admin";
};
serviceDependencies = [ "matrix-synapse.service" ];
};

View File

@ -8,15 +8,11 @@
dataDir = "/vault/syncthing";
declarative = {
devices = {
panacea = {
id =
panacea.id =
"UNZIABR-GEQ4AWT-XKFADLW-HW3SQ3Y-BEYZ56A-W530DLS-DXGQWKK-2QQ4RQ6";
};
caravanserai = {
id =
caravanserai.id =
"6KSGHNJ-NH4EZGP-X5HGV6B-OQ3ZFE6-WZQACOC-6WKPRGI-TTBRHJ5-U3R2AQ3";
};
};
folders = {
Documents = {
id = "wusdj-bfjkr";

View File

@ -14,6 +14,6 @@
repositoryRoot = "/vault/git";
appName = "Gitea";
lfs.enable = true;
settings = { ui = { DEFAULT_THEME = "arc-green"; }; };
settings.ui.DEFAULT_THEME = "arc-green";
};
}

View File

@ -20,7 +20,7 @@ in {
path = with pkgs; [ curl ];
script =
"curl -L https://github.com/notracking/hosts-blocklists/raw/master/dnsmasq/dnsmasq.blacklist.txt -o ${blocklist}";
serviceConfig = { Type = "oneshot"; };
serviceConfig.Type = "oneshot";
postStop = ''
chown -R dnsmasq ${stateDir}
systemctl restart dnsmasq

View File

@ -92,20 +92,18 @@
ssl = true;
}
];
locations."/" = { proxyPass = "http://localhost:8008/"; };
locations."/".proxyPass = "http://localhost:8008/";
};
"element.coolneng.duckdns.org" = {
enableACME = true;
forceSSL = true;
locations."/".root = pkgs.element-web.override {
conf = {
default_server_config."m.homeserver" = {
conf.default_server_config."m.homeserver" = {
"base_url" = "https://matrix.coolneng.duckdns.org";
"server_name" = "coolneng.duckdns.org";
};
};
};
};
"wallabag.coolneng.duckdns.org" = {
enableACME = true;
forceSSL = true;
@ -134,9 +132,7 @@
security.acme = {
acceptTerms = true;
email = "akasroua@gmail.com";
certs = {
"coolneng.duckdns.org" = {
extraDomainNames = [
certs."coolneng.duckdns.org".extraDomainNames = [
"radicale.coolneng.duckdns.org"
"sync.coolneng.duckdns.org"
"git.coolneng.duckdns.org"
@ -146,13 +142,11 @@
"wallabag.coolneng.duckdns.org"
];
};
};
};
# Generate dhparams
security.dhparams = {
enable = true;
params = { nginx.bits = 2048; };
params.nginx.bits = 2048;
};
# PostgreSQL databases configuration