try importing programs from base

This commit is contained in:
Tyler Starr 2025-03-12 22:43:42 -07:00
parent 3aa7ea67d6
commit dd2872287a
3 changed files with 2 additions and 6 deletions

View File

@ -2,5 +2,6 @@
{ {
imports = [ imports = [
./terminal.nix ./terminal.nix
../programs/git.nix
]; ];
} }

View File

@ -6,7 +6,6 @@
./borg.nix ./borg.nix
./chrome.nix ./chrome.nix
./firefox.nix ./firefox.nix
./git.nix
./chezmoi.nix ./chezmoi.nix
./kitty.nix ./kitty.nix
./nvim.nix ./nvim.nix

View File

@ -3,17 +3,13 @@
let cfg = config.modules.programs.git; let cfg = config.modules.programs.git;
in { in {
options.modules.programs.git = with lib; { options.modules.programs.git = with lib; {
enable = lib.mkOption {
type = with types; bool;
default = true;
};
keys = lib.mkOption { keys = lib.mkOption {
type = with types; bool; type = with types; bool;
default = true; default = true;
}; };
}; };
config = lib.mkIf cfg.enable { config = {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
git # Version control system for tracking changes in source code during software development git # Version control system for tracking changes in source code during software development
git-annex # Manages files with git, without checking the file contents into git git-annex # Manages files with git, without checking the file contents into git