X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fprivate%2Fpub%2Fdefault.nix;h=18c146baeca7ac80afbc12a2ba14499892276109;hb=f7c27d313296485fd5f6d76a9264c26beef2eeaa;hp=835bcec9a094279fd67ceb7bed513df0cef397ec;hpb=d2e703c560bc029c3d607058de2935bbf1cb0559;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/modules/private/pub/default.nix b/modules/private/pub/default.nix index 835bcec..18c146b 100644 --- a/modules/private/pub/default.nix +++ b/modules/private/pub/default.nix @@ -1,4 +1,4 @@ -{ lib, pkgs, config, myconfig, ... }: +{ lib, pkgs, config, ... }: { options = { myServices.pub.enable = lib.mkOption { @@ -17,9 +17,10 @@ }]; services.duplyBackup.profiles.pub = { rootDir = "/var/lib/pub"; + remotes = [ "eriomem" "ovh" ]; }; users.users.pub = let - restrict = pkgs.runCommand "restrict" { + restrict = pkgs.runCommand "restrict" { file = ./restrict; buildInputs = [ pkgs.makeWrapper ]; } '' @@ -43,7 +44,7 @@ createHome = true; description = "Restricted shell user"; home = "/var/lib/pub"; - uid = myconfig.env.users.pub.uid; + uid = config.myEnv.users.pub.uid; useDefaultShell = true; packages = [ restrict