X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fprivate%2Fpub%2Fdefault.nix;h=18c146baeca7ac80afbc12a2ba14499892276109;hb=6ee7783682e977f3ceebfb5a8ee8ddd1db3f7cc6;hp=7eaabc9d4e1fb77fa74e5defb91e6c53dfcf53c2;hpb=1b9150a54b5cb0b512265cdcf88ad10c9a4a55b1;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/modules/private/pub/default.nix b/modules/private/pub/default.nix index 7eaabc9..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 { @@ -15,11 +15,12 @@ snippet = builtins.readFile ./ldap_pub.sh; dependencies = [ pkgs.coreutils ]; }]; - services.backup.profiles.pub = { + 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