New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
restic: add s3CredentialsFile option #41343
Conversation
|
||
s3CredentialsFile = mkOption { | ||
type = types.str; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose it should have a default value:
type = with types; nullOr str;
default = null;
@@ -134,6 +142,8 @@ with lib; | |||
Type = "oneshot"; | |||
ExecStart = "${resticCmd} backup ${concatStringsSep " " backup.extraBackupArgs} ${concatStringsSep " " backup.paths}"; | |||
User = backup.user; | |||
} // optionalAttrs (backup.s3CredentialsFile != "") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the new default it can be compared with null instead of empty string.
fixed to use |
Hm ... am I missing a |
yep, I am -- sorry! fixed in #44332. |
Why do you call this |
was just too focused on that use case -- okay w/ me if you want to rename it. |
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)