fix CA certs and git keys for wsl

This commit is contained in:
Tyler Starr 2024-10-02 12:59:39 -07:00
parent e432467fc7
commit fae8e8f505
2 changed files with 7 additions and 8 deletions

View File

@ -45,15 +45,10 @@ in
wget wget
]; ];
# Add DoD CA certs to trusted source
security.pki.certificateFiles = [ security.pki.certificateFiles = [
./nipr.crt ./nipr.crt
]; ];
environment.variables = {
"NIX_SSL_CERT_FILE" = ./nipr.crt;
};
security.sudo.extraConfig = ''
Defaults env_keep += "NIX_SSL_CERT_FILE"
'';
# Modules # Modules
modules = { modules = {
@ -63,9 +58,9 @@ in
}; };
programs = { programs = {
chezmoi.apply = true; chezmoi.apply = true;
git.keys = false;
}; };
system = { system = {
ssh.enable = true;
terminal.enable = true; terminal.enable = true;
}; };
}; };

View File

@ -7,6 +7,10 @@ in {
type = with types; bool; type = with types; bool;
default = true; default = true;
}; };
keys = lib.mkOption {
type = with types; bool;
default = true;
};
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
@ -16,7 +20,7 @@ in {
lazygit # Terminal-based GUI for git, making it easier to use and visualize git repositories. lazygit # Terminal-based GUI for git, making it easier to use and visualize git repositories.
]; ];
age.secrets."git/github_personal" = { age.secrets."git/github_personal" = lib.mkIf cfg.keys {
file = ../../secrets/git/github_personal.age; file = ../../secrets/git/github_personal.age;
owner = "${user}"; owner = "${user}";
group = "users"; group = "users";