This commit is contained in:
Bryan Ramos 2024-05-12 12:01:13 -04:00
parent ff5a0fe6a3
commit 929dbf8c43
Signed by: bryan
GPG key ID: 6ABDCD144D6643C8
16 changed files with 74 additions and 61 deletions

View file

@ -2,7 +2,6 @@
imports = [
./bash
./git
./gpg
./gui
./security
./utils

View file

@ -5,7 +5,6 @@ function cdg() {
return 0
fi
# Check for invalid command
if [[ -n "$1" ]]; then
echo "Invalid command: $1. Try 'cdg --help'."
return 1

View file

@ -10,6 +10,26 @@ in
programs = {
git = {
enable = true;
extraConfig = {
init = { defaultBranch = "master"; };
mergetool = {
vimdiff = {
trustExitCode = true;
};
};
merge = { tool = "vimdiff"; };
safe = {
directory = "${config.user.nixosDir}";
};
};
ignores = [
"node_modules"
".direnv"
"dist-newstyle"
".nuxt/"
".output/"
"dist"
];
} // config.user.gitConfig;
gh = {
enable = true;

View file

@ -6,6 +6,7 @@ let
in
{ options.modules.user.security = { enable = mkEnableOption "user.security"; };
imports = [ ./modules ];
config = mkIf cfg.enable {
home.packages = with pkgs; [
pass

View file

@ -0,0 +1,5 @@
{
imports = [
./gpg
];
}

View file

@ -2,10 +2,10 @@
with lib;
let
cfg = config.modules.user.gpg;
cfg = config.modules.user.security.gpg;
in
{ options.modules.user.gpg = { enable = mkEnableOption "user.gpg"; };
{ options.modules.user.security.gpg = { enable = mkEnableOption "user.security.gpg"; };
config = mkIf cfg.enable {
programs.gpg = {
enable = true;
@ -16,6 +16,7 @@ in
enable = true;
enableSshSupport = true;
enableBashIntegration = true;
enableScDaemon = true;
pinentryFlavor = "tty";
};
};

View file

@ -29,6 +29,10 @@ in
};
};
programs.git.ignores = [
".direnv"
];
home.sessionVariables = {
DIRENV_LOG_FORMAT = " ";
};