X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fprivate%2Fpub%2Fdefault.nix;h=c4195306c6a53453f72edd1357b103507e66046a;hb=bd0cb07b13aecd16a0782492655843a1b699611d;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..c419530 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,8 @@ snippet = builtins.readFile ./ldap_pub.sh; dependencies = [ pkgs.coreutils ]; }]; - services.duplyBackup.profiles.pub = { - rootDir = "/var/lib/pub"; - }; users.users.pub = let - restrict = pkgs.runCommand "restrict" { + restrict = pkgs.runCommand "restrict" { file = ./restrict; buildInputs = [ pkgs.makeWrapper ]; } '' @@ -43,7 +40,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