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 = [
./terminal.nix
../programs/git.nix
];
}

View File

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

View File

@ -3,17 +3,13 @@
let cfg = config.modules.programs.git;
in {
options.modules.programs.git = with lib; {
enable = lib.mkOption {
type = with types; bool;
default = true;
};
keys = lib.mkOption {
type = with types; bool;
default = true;
};
};
config = lib.mkIf cfg.enable {
config = {
environment.systemPackages = with pkgs; [
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