fix: darwin - nix-access-token

This commit is contained in:
Ryan Yin
2024-11-29 23:43:55 +08:00
parent 6fc0c5bcc2
commit 0a9697352b
3 changed files with 7 additions and 5 deletions

View File

@@ -1,4 +1,5 @@
{
config,
pkgs,
myvars,
nuenv,
@@ -115,4 +116,8 @@
];
builders-use-substitutes = true;
};
nix.extraOptions = ''
!include ${config.age.secrets.nix-access-tokens.path}
'';
}

View File

@@ -3,10 +3,6 @@
pkgs,
...
}: {
nix.extraOptions = ''
!include ${config.age.secrets.nix-access-tokens.path}
'';
# security with polkit
security.polkit.enable = true;
# security with gnome-kering

View File

@@ -71,7 +71,8 @@
{
file = "${mysecrets}/nix-access-tokens.age";
}
// high_security;
# access-token needs to be readable by the user running the `nix` command
// user_readable;
# ---------------------------------------------
# user can read this file.