Use dot operator for attribute sets with 1 element
This commit is contained in:
parent
d5249bb625
commit
cd2b98cca2
|
@ -31,9 +31,7 @@
|
||||||
address = "http://localhost:8118";
|
address = "http://localhost:8118";
|
||||||
port = 8118;
|
port = 8118;
|
||||||
};
|
};
|
||||||
bridge = {
|
bridge.permissions."@coolneng:coolneng.duckdns.org" = "admin";
|
||||||
permissions = { "@coolneng:coolneng.duckdns.org" = "admin"; };
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
serviceDependencies = [ "matrix-synapse.service" ];
|
serviceDependencies = [ "matrix-synapse.service" ];
|
||||||
};
|
};
|
||||||
|
|
|
@ -8,15 +8,11 @@
|
||||||
dataDir = "/vault/syncthing";
|
dataDir = "/vault/syncthing";
|
||||||
declarative = {
|
declarative = {
|
||||||
devices = {
|
devices = {
|
||||||
panacea = {
|
panacea.id =
|
||||||
id =
|
|
||||||
"UNZIABR-GEQ4AWT-XKFADLW-HW3SQ3Y-BEYZ56A-W530DLS-DXGQWKK-2QQ4RQ6";
|
"UNZIABR-GEQ4AWT-XKFADLW-HW3SQ3Y-BEYZ56A-W530DLS-DXGQWKK-2QQ4RQ6";
|
||||||
};
|
caravanserai.id =
|
||||||
caravanserai = {
|
|
||||||
id =
|
|
||||||
"6KSGHNJ-NH4EZGP-X5HGV6B-OQ3ZFE6-WZQACOC-6WKPRGI-TTBRHJ5-U3R2AQ3";
|
"6KSGHNJ-NH4EZGP-X5HGV6B-OQ3ZFE6-WZQACOC-6WKPRGI-TTBRHJ5-U3R2AQ3";
|
||||||
};
|
};
|
||||||
};
|
|
||||||
folders = {
|
folders = {
|
||||||
Documents = {
|
Documents = {
|
||||||
id = "wusdj-bfjkr";
|
id = "wusdj-bfjkr";
|
||||||
|
|
|
@ -14,6 +14,6 @@
|
||||||
repositoryRoot = "/vault/git";
|
repositoryRoot = "/vault/git";
|
||||||
appName = "Gitea";
|
appName = "Gitea";
|
||||||
lfs.enable = true;
|
lfs.enable = true;
|
||||||
settings = { ui = { DEFAULT_THEME = "arc-green"; }; };
|
settings.ui.DEFAULT_THEME = "arc-green";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ in {
|
||||||
path = with pkgs; [ curl ];
|
path = with pkgs; [ curl ];
|
||||||
script =
|
script =
|
||||||
"curl -L https://github.com/notracking/hosts-blocklists/raw/master/dnsmasq/dnsmasq.blacklist.txt -o ${blocklist}";
|
"curl -L https://github.com/notracking/hosts-blocklists/raw/master/dnsmasq/dnsmasq.blacklist.txt -o ${blocklist}";
|
||||||
serviceConfig = { Type = "oneshot"; };
|
serviceConfig.Type = "oneshot";
|
||||||
postStop = ''
|
postStop = ''
|
||||||
chown -R dnsmasq ${stateDir}
|
chown -R dnsmasq ${stateDir}
|
||||||
systemctl restart dnsmasq
|
systemctl restart dnsmasq
|
||||||
|
|
|
@ -92,20 +92,18 @@
|
||||||
ssl = true;
|
ssl = true;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
locations."/" = { proxyPass = "http://localhost:8008/"; };
|
locations."/".proxyPass = "http://localhost:8008/";
|
||||||
};
|
};
|
||||||
"element.coolneng.duckdns.org" = {
|
"element.coolneng.duckdns.org" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
locations."/".root = pkgs.element-web.override {
|
locations."/".root = pkgs.element-web.override {
|
||||||
conf = {
|
conf.default_server_config."m.homeserver" = {
|
||||||
default_server_config."m.homeserver" = {
|
|
||||||
"base_url" = "https://matrix.coolneng.duckdns.org";
|
"base_url" = "https://matrix.coolneng.duckdns.org";
|
||||||
"server_name" = "coolneng.duckdns.org";
|
"server_name" = "coolneng.duckdns.org";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
"wallabag.coolneng.duckdns.org" = {
|
"wallabag.coolneng.duckdns.org" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
@ -134,9 +132,7 @@
|
||||||
security.acme = {
|
security.acme = {
|
||||||
acceptTerms = true;
|
acceptTerms = true;
|
||||||
email = "akasroua@gmail.com";
|
email = "akasroua@gmail.com";
|
||||||
certs = {
|
certs."coolneng.duckdns.org".extraDomainNames = [
|
||||||
"coolneng.duckdns.org" = {
|
|
||||||
extraDomainNames = [
|
|
||||||
"radicale.coolneng.duckdns.org"
|
"radicale.coolneng.duckdns.org"
|
||||||
"sync.coolneng.duckdns.org"
|
"sync.coolneng.duckdns.org"
|
||||||
"git.coolneng.duckdns.org"
|
"git.coolneng.duckdns.org"
|
||||||
|
@ -146,13 +142,11 @@
|
||||||
"wallabag.coolneng.duckdns.org"
|
"wallabag.coolneng.duckdns.org"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Generate dhparams
|
# Generate dhparams
|
||||||
security.dhparams = {
|
security.dhparams = {
|
||||||
enable = true;
|
enable = true;
|
||||||
params = { nginx.bits = 2048; };
|
params.nginx.bits = 2048;
|
||||||
};
|
};
|
||||||
|
|
||||||
# PostgreSQL databases configuration
|
# PostgreSQL databases configuration
|
||||||
|
|
Loading…
Reference in New Issue