diff options
| author | Leonardo <noreply@leoflo.me> | 2026-02-28 16:27:59 +0100 |
|---|---|---|
| committer | Leonardo <noreply@leoflo.me> | 2026-02-28 19:02:07 +0100 |
| commit | bb11479130b0988e93408aa917cfc872d427d95f (patch) | |
| tree | 58d37004d9529f927fcab0a5672bc6697d9b3c24 /components/programs/git.nix | |
| parent | 1507e4e369bd73b85f191fef20a7509283a418aa (diff) | |
| download | nixos-bb11479130b0988e93408aa917cfc872d427d95f.tar.gz nixos-bb11479130b0988e93408aa917cfc872d427d95f.zip | |
nuovo layout
Diffstat (limited to 'components/programs/git.nix')
| -rw-r--r-- | components/programs/git.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/components/programs/git.nix b/components/programs/git.nix new file mode 100644 index 0000000..10226b8 --- /dev/null +++ b/components/programs/git.nix @@ -0,0 +1,18 @@ +{lib, config, ...}: { + options.git.enable = lib.mkEnableOption "Git CMS"; + + config = lib.mkIf config.git.enable { + programs.git = { + enable = true; + + config = { + init = { + defaultBranch = "master"; + }; + core = { + editor = "vim"; + }; + }; + }; + }; +} |
