Compare commits
2 commits
216efbbc42
...
05e8e501f5
Author | SHA1 | Date | |
---|---|---|---|
|
05e8e501f5 | ||
|
09d341a098 |
1 changed files with 19 additions and 0 deletions
|
@ -83,6 +83,17 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
virtualisation = {
|
||||
podman = {
|
||||
enable = true;
|
||||
|
||||
defaultNetwork.settings = {
|
||||
dns_enable = true;
|
||||
ipv6_enabled = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
virtualisation.oci-containers = {
|
||||
# # Since 22.05, the default driver is podman but it doesn't work
|
||||
# # with podman. It would however be nice to switch to podman.
|
||||
|
@ -180,4 +191,12 @@ in {
|
|||
networking.hosts = { "129.199.146.148" = [ "s3.dgnum.eu" ]; };
|
||||
|
||||
dgn-secrets.matches."^nextcloud-.*$" = { owner = "nextcloud"; };
|
||||
|
||||
system.activationScripts = {
|
||||
restart-nextcloud.text = ''
|
||||
if [ "$(${pkgs.systemd}/bin/systemctl is-active phpfpm-nextcloud)" == "active" ]; then
|
||||
${pkgs.systemd}/bin/systemctl restart phpfpm-nextcloud
|
||||
fi
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue