X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FConfig%2FNix.git;a=blobdiff_plain;f=modules%2Fprivate%2Fpub%2Fdefault.nix;fp=nixops%2Fmodules%2Fpub%2Fdefault.nix;h=c31c8eb0e40e8367838e270b1d6848562820c6c8;hp=cdc68db2f8b6156e7b1448ed95b1d00eeeb45174;hb=8d213e2b1c934f6861f76aad5eb7c11097fa97de;hpb=a1a8649a2be768685eb04c246c114fce36b8096f diff --git a/nixops/modules/pub/default.nix b/modules/private/pub/default.nix similarity index 93% rename from nixops/modules/pub/default.nix rename to modules/private/pub/default.nix index cdc68db..c31c8eb 100644 --- a/nixops/modules/pub/default.nix +++ b/modules/private/pub/default.nix @@ -1,7 +1,7 @@ { lib, pkgs, config, myconfig, ... }: { options = { - services.pub.enable = lib.mkOption { + myServices.pub.enable = lib.mkOption { type = lib.types.bool; default = false; description = '' @@ -10,7 +10,7 @@ }; }; - config = lib.mkIf config.services.pub.enable { + config = lib.mkIf config.myServices.pub.enable { users.users.pub = let restrict = pkgs.runCommand "restrict" { file = ./restrict;