mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-30 10:03:56 +01:00
docs: warn that user-readable decrypted secrets must not be read (#303)
Only three secrets are readable as the login user (nix-access-tokens, ssh-key-romantic and the nushell one); everything else is root-only and the filesystem already keeps agents out.
This commit is contained in:
1 parent
260da1ee20
commit
ef00eb31e0
5 files changed
+5
-2
No files matched your search
@@ -27,6 +27,7 @@
|
||||
system.stateVersion = 5;
|
||||
|
||||
nix.extraOptions = ''
|
||||
# decrypted secret: AI agents must not read it
|
||||
!include ${config.age.secrets.nix-access-tokens.path}
|
||||
'';
|
||||
}
|
||||
@@ -17,7 +17,7 @@
|
||||
nix.buildMachines =
|
||||
let
|
||||
sshUser = myvars.username;
|
||||
# ssh key's path on local machine
|
||||
# ssh key's path on local machine; a decrypted secret AI agents must not read
|
||||
sshKey = "/etc/agenix/ssh-key-romantic";
|
||||
systems = [
|
||||
# native arch
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{ config, ... }:
|
||||
{
|
||||
nix.extraOptions = ''
|
||||
# decrypted secret: AI agents must not read it
|
||||
!include ${config.age.secrets.nix-access-tokens.path}
|
||||
'';
|
||||
}
|
||||
Reference in new issue
Block a user