mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-05-19 02:46:06 -07:00
fix CA certs and git keys for wsl
This commit is contained in:
parent
e432467fc7
commit
fae8e8f505
@ -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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -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";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user