From 0bad33a0351192276eee669c746dae798aed713d Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 16 May 2023 22:49:11 +0100 Subject: [PATCH] refactor(git): move .gitmessage text --- home-manager/modules/common.nix | 17 ----------------- home-manager/modules/git.nix | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/home-manager/modules/common.nix b/home-manager/modules/common.nix index db89304..9ad499a 100644 --- a/home-manager/modules/common.nix +++ b/home-manager/modules/common.nix @@ -76,23 +76,6 @@ in home.packages = (import ./home-manager-packages.nix) { inherit pkgs; }; - home.file.".gitmessage".text = '' - type(scope): description - - # type: fix, feat, build, chore, ci, docs, style, refactor, perf, test - # - # Description - # - # - Why is this change necessary? - # - How does it address the issue? - # - What side effects does this change have? - # - # For breaking changes, add an ! after the type/scope, uncomment the following - # line and describe the change: - # - # BREAKING CHANGE: - ''; - home.file."nodemon.json".text = '' { "ignore": [ diff --git a/home-manager/modules/git.nix b/home-manager/modules/git.nix index 6f2ca05..966a786 100644 --- a/home-manager/modules/git.nix +++ b/home-manager/modules/git.nix @@ -1,4 +1,21 @@ { config, pkgs, lib, libs, ... }: { + home.file.".gitmessage".text = '' + type(scope): description + + # type: fix, feat, build, chore, ci, docs, style, refactor, perf, test + # + # Description + # + # - Why is this change necessary? + # - How does it address the issue? + # - What side effects does this change have? + # + # For breaking changes, add an ! after the type/scope, uncomment the following + # line and describe the change: + # + # BREAKING CHANGE: + ''; + programs.git = { enable = true; userName = "Oliver Davies";