Skip to content

Commit

Permalink
Ensure secret files are mode 0600.
Browse files Browse the repository at this point in the history
  • Loading branch information
pippijn committed Nov 4, 2023
1 parent 20877d1 commit 35651eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .config/home-manager/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ in {
setopt hist_reduce_blanks # remove superfluous blanks
keychain id_rsa
. .keychain/${sys.networking.hostName}-sh
# Fix some permissions in case they went wrong after git clone
# and decrypt.
chmod 0600 $(git-crypt status | grep "^ encrypted: " | cut -b16-)
'';

shellAliases = {
Expand Down

0 comments on commit 35651eb

Please sign in to comment.