Closed Eisfunke closed 9 months ago
CI failure seems to be unrelated.
I think this makes sense to silence a useless warning -- that warning just complains that a user is comparing two static strings e.g. if [ "foo" = "bar" ]
which normally would be an error, but in our case these strings are being created in the above context by nix and therefore could differ.
Thank you!
If you set
secretsDir
in the home-manager module to a fixed path containing no env variable, the building of the mount script will fail with shellcheck warnings like these (for/home/eisfunke/.agenix
assecretsDir
):This is a problem as not having an env var in my
secretsDir
was the entire reason that I modified it at all, because not all applications accept env vars in paths (e.g. my usecase: the Nix config won't resolve the env varsnet-rc-file
which I want to set to an agenix secret).Ignoring SC2050 in the corresponding lines in age-home.nix fixed this for me.