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, pkgs,
myvars, myvars,
nuenv, nuenv,
@@ -115,4 +116,8 @@
]; ];
builders-use-substitutes = true; builders-use-substitutes = true;
}; };
nix.extraOptions = ''
!include ${config.age.secrets.nix-access-tokens.path}
'';
} }

View File

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

View File

@@ -71,7 +71,8 @@
{ {
file = "${mysecrets}/nix-access-tokens.age"; 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. # user can read this file.