Skip to content
Snippets Groups Projects
Commit 9a5c4e7d authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

remove extra indentation and let

parent e584fcc1
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
{ lib, pkgs, config, ... }: let { lib, pkgs, config, ... }: let
pspkgs = pkgs.callPackage ./pspkgs.nix { }; pspkgs = pkgs.callPackage ./pspkgs.nix { };
zkapissuer = pspkgs.callPackage ../pkgs/zkapissuer.nix { }; zkapissuer = pspkgs.callPackage ../pkgs/zkapissuer.nix { };
cfg = config.services.private-storage-issuer;
in { in {
options = { options = {
services.private-storage-issuer.enable = lib.mkEnableOption "PrivateStorage ZKAP Issuer Service"; services.private-storage-issuer.enable = lib.mkEnableOption "PrivateStorage ZKAP Issuer Service";
...@@ -33,10 +34,7 @@ in { ...@@ -33,10 +34,7 @@ in {
}; };
}; };
config = let config = lib.mkIf cfg.enable {
cfg = config.services.private-storage-issuer;
in
lib.mkIf cfg.enable {
systemd.services.zkapissuer = { systemd.services.zkapissuer = {
enable = true; enable = true;
description = "ZKAP Issuer"; description = "ZKAP Issuer";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment