fix(nix): github token
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
secrets,
|
secrets,
|
||||||
|
username,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
lib.my.makeSwitch {
|
lib.my.makeSwitch {
|
||||||
@@ -52,8 +53,11 @@ lib.my.makeSwitch {
|
|||||||
sops.secrets.nix-github-token = {
|
sops.secrets.nix-github-token = {
|
||||||
sopsFile = secrets.nix-github-token;
|
sopsFile = secrets.nix-github-token;
|
||||||
format = "binary";
|
format = "binary";
|
||||||
|
owner = username;
|
||||||
|
group = "users";
|
||||||
|
mode = "0400";
|
||||||
};
|
};
|
||||||
nix.extraOptions = ''
|
my.home.nix.extraOptions = ''
|
||||||
!include ${config.sops.secrets.nix-github-token.path}
|
!include ${config.sops.secrets.nix-github-token.path}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user