Plus de dépendance à rkt
This commit is contained in:
parent
0180566812
commit
937a84b487
@ -46,10 +46,6 @@
|
|||||||
|
|
||||||
programs.zsh.enable = true;
|
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
|
# Some programs need SUID wrappers, can be configured further or are
|
||||||
# started in user sessions.
|
# started in user sessions.
|
||||||
# programs.bash.enableCompletion = true;
|
# programs.bash.enableCompletion = true;
|
||||||
|
18
services.nix
18
services.nix
@ -117,24 +117,6 @@
|
|||||||
services.syncthing.dataDir = "/var/lib/syncthing";
|
services.syncthing.dataDir = "/var/lib/syncthing";
|
||||||
services.syncthing.openDefaultPorts = true;
|
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 = {
|
services.nfs.server = {
|
||||||
enable = true;
|
enable = true;
|
||||||
exports = ''
|
exports = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user