From 657442730c5e9918c0739377eb6025a9397dbb61 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Mon, 9 Jan 2023 13:23:45 +0100 Subject: [PATCH] modules/age: add indentation This makes the following commit more readable. --- modules/age.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/age.nix b/modules/age.nix index a4631f7..da36567 100644 --- a/modules/age.nix +++ b/modules/age.nix @@ -15,14 +15,14 @@ let users = config.users.users; newGeneration = '' - _agenix_generation="$(basename "$(readlink ${cfg.secretsDir})" || echo 0)" - (( ++_agenix_generation )) - echo "[agenix] creating new generation in ${cfg.secretsMountPoint}/$_agenix_generation" - mkdir -p "${cfg.secretsMountPoint}" - chmod 0751 "${cfg.secretsMountPoint}" - grep -q "${cfg.secretsMountPoint} ramfs" /proc/mounts || mount -t ramfs none "${cfg.secretsMountPoint}" -o nodev,nosuid,mode=0751 - mkdir -p "${cfg.secretsMountPoint}/$_agenix_generation" - chmod 0751 "${cfg.secretsMountPoint}/$_agenix_generation" + _agenix_generation="$(basename "$(readlink ${cfg.secretsDir})" || echo 0)" + (( ++_agenix_generation )) + echo "[agenix] creating new generation in ${cfg.secretsMountPoint}/$_agenix_generation" + mkdir -p "${cfg.secretsMountPoint}" + chmod 0751 "${cfg.secretsMountPoint}" + grep -q "${cfg.secretsMountPoint} ramfs" /proc/mounts || mount -t ramfs none "${cfg.secretsMountPoint}" -o nodev,nosuid,mode=0751 + mkdir -p "${cfg.secretsMountPoint}/$_agenix_generation" + chmod 0751 "${cfg.secretsMountPoint}/$_agenix_generation" ''; identities = builtins.concatStringsSep " " (map (path: "-i ${path}") cfg.identityPaths);