summaryrefslogtreecommitdiff
path: root/components/programs/git.nix
diff options
context:
space:
mode:
Diffstat (limited to 'components/programs/git.nix')
-rw-r--r--components/programs/git.nix18
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";
+ };
+ };
+ };
+ };
+}