mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
by default install git module
This commit is contained in:
parent
bf4fd731df
commit
1edff2811f
@ -1,15 +1,25 @@
|
|||||||
{ config, pkgs, user, lib, ... }:
|
{ config, lib, pkgs, user, ... }:
|
||||||
{
|
|
||||||
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.
|
|
||||||
lazygit # Terminal-based GUI for git, making it easier to use and visualize git repositories.
|
|
||||||
];
|
|
||||||
|
|
||||||
age.secrets."git/github_personal" = {
|
let cfg = config.modules.programs.git;
|
||||||
file = ../../secrets/git/github_personal.age;
|
in {
|
||||||
owner = "${user}";
|
options.modules.programs.git = with lib; {
|
||||||
group = "users";
|
enable = lib.mkOption {
|
||||||
|
type = with types; bool;
|
||||||
|
default = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
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.
|
||||||
|
lazygit # Terminal-based GUI for git, making it easier to use and visualize git repositories.
|
||||||
|
];
|
||||||
|
|
||||||
|
age.secrets."git/github_personal" = {
|
||||||
|
file = ../../secrets/git/github_personal.age;
|
||||||
|
owner = "${user}";
|
||||||
|
group = "users";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user