Use dot operator for attribute sets with 1 element

This commit is contained in:
2021-04-15 12:34:38 +02:00
parent d5249bb625
commit cd2b98cca2
5 changed files with 21 additions and 33 deletions

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