From 937a84b4875bb3fbdcc45649c368dc953fb0b5af Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Sat, 7 Apr 2018 14:19:47 +0200 Subject: [PATCH] =?UTF-8?q?Plus=20de=20d=C3=A9pendance=20=C3=A0=20rkt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- configuration.nix | 4 ---- services.nix | 18 ------------------ 2 files changed, 22 deletions(-) diff --git a/configuration.nix b/configuration.nix index e45a69954..f230efef6 100644 --- a/configuration.nix +++ b/configuration.nix @@ -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; diff --git a/services.nix b/services.nix index d0fb0724c..a37bb7c01 100644 --- a/services.nix +++ b/services.nix @@ -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 = ''