39 lines
900 B
Nix
39 lines
900 B
Nix
{ config, inputs, ... }:
|
|
{
|
|
sops = {
|
|
secrets = {
|
|
"git/credentials/github.com/public/username".sopsFile = "${inputs.secrets}/personal/secrets.yaml";
|
|
"git/credentials/github.com/public/password".sopsFile = "${inputs.secrets}/personal/secrets.yaml";
|
|
};
|
|
|
|
templates.nix-access-tokens = {
|
|
content = ''
|
|
access-tokens = github.com=${config.sops.placeholder."git/credentials/github.com/public/password"}
|
|
'';
|
|
group = "users";
|
|
};
|
|
};
|
|
|
|
nix = {
|
|
settings = {
|
|
use-xdg-base-directories = true;
|
|
experimental-features = [
|
|
"nix-command"
|
|
"flakes"
|
|
];
|
|
download-buffer-size = 524288000;
|
|
};
|
|
|
|
channel.enable = false;
|
|
|
|
gc.automatic = true;
|
|
optimise.automatic = true;
|
|
|
|
registry.self.flake = inputs.self;
|
|
|
|
extraOptions = ''
|
|
!include ${config.sops.templates.nix-access-tokens.path}
|
|
'';
|
|
};
|
|
}
|