Plus de dépendance à rkt

This commit is contained in:
nyanloutre 2018-04-07 14:19:47 +02:00
parent 0180566812
commit 937a84b487
2 changed files with 0 additions and 22 deletions

View File

@ -46,10 +46,6 @@
programs.zsh.enable = true;
virtualisation.rkt.enable = true;
boot.kernelModules = [ "overlay" ];
users.extraGroups.rkt = { };
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.bash.enableCompletion = true;

View File

@ -117,24 +117,6 @@
services.syncthing.dataDir = "/var/lib/syncthing";
services.syncthing.openDefaultPorts = true;
systemd = {
services.duplicati = {
description = "Duplicati backup";
after = [ "network-online.target" ];
wants = [ "network-online.target" ];
wantedBy = [ "multi-user.target" ];
serviceConfig = {
Slice = "machine.slice";
ExecStart = "${pkgs.rkt}/bin/rkt --insecure-options=image --pull-policy=update run --volume volume-config,kind=host,source=/var/lib/duplicati --volume volume-source,kind=host,source=/mnt/medias,readOnly=true --port 8200-tcp:8200 --dns 8.8.8.8 --dns 8.8.4.4 docker://linuxserver/duplicati";
ExecStopPost = "${pkgs.rkt}/bin/rkt gc --mark-only";
KillMode = "mixed";
Restart = "on-failure";
RestartSec = 3;
};
enable = true;
};
};
services.nfs.server = {
enable = true;
exports = ''