mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-25 17:38:29 +02:00
fix: darwin - nix-access-token
This commit is contained in:
@@ -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}
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user