forked from pub-solar/os
Merge pull request 'Add gitmessage template to global git config' (#72) from feature/gitmessage into main
Reviewed-on: https://git.b12f.io/pub-solar/os/pulls/72 Reviewed-by: teutat3s <teutates@mailbox.org>
This commit is contained in:
commit
26ccb60ce5
|
@ -24,6 +24,7 @@ in
|
||||||
|
|
||||||
[commit]
|
[commit]
|
||||||
gpgsign = true
|
gpgsign = true
|
||||||
|
template = ${xdg.configHome}/git/gitmessage
|
||||||
[tag]
|
[tag]
|
||||||
gpgsign = true
|
gpgsign = true
|
||||||
[init]
|
[init]
|
||||||
|
|
32
profiles/base-user/.config/git/gitmessage.nix
Normal file
32
profiles/base-user/.config/git/gitmessage.nix
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
let
|
||||||
|
user = config.pub-solar.user;
|
||||||
|
xdg = config.home-manager.users."${user.name}".xdg;
|
||||||
|
in
|
||||||
|
''
|
||||||
|
# Title: Summary, imperative, start upper case, don't end with a period
|
||||||
|
# No more than 50 chars. #### 50 chars is here: #
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
# ^ Remember ending with an extra blank line
|
||||||
|
# Body: Explain *what* and *why* (not *how*). Include issue number.
|
||||||
|
# Wrap at 72 chars. ################################## which is here: #
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
# ^ Remember ending with an extra blank line
|
||||||
|
# At the end: Include Co-authored-by for all contributors.
|
||||||
|
#
|
||||||
|
Co-authored-by: ${user.fullName} <${user.email}>
|
||||||
|
|
||||||
|
# Please enter the commit message for your changes. Lines starting
|
||||||
|
# with '#' will be ignored, and an empty message aborts the commit.
|
||||||
|
#
|
||||||
|
# On branch master
|
||||||
|
# Your branch is up to date with 'origin/main'.
|
||||||
|
#
|
||||||
|
# Changes to be committed:
|
||||||
|
# new file: installation.md
|
||||||
|
#
|
||||||
|
''
|
|
@ -32,6 +32,7 @@ in
|
||||||
xdg.mimeApps = import ./mimeapps.nix;
|
xdg.mimeApps = import ./mimeapps.nix;
|
||||||
|
|
||||||
xdg.configFile."git/config".text = import ./.config/git/config.nix { inherit config; inherit pkgs; };
|
xdg.configFile."git/config".text = import ./.config/git/config.nix { inherit config; inherit pkgs; };
|
||||||
|
xdg.configFile."git/gitmessage".text = import ./.config/git/gitmessage.nix { inherit config; inherit pkgs; };
|
||||||
xdg.configFile."git/global_gitignore".text = import ./.config/git/global_gitignore.nix { inherit config; inherit pkgs; };
|
xdg.configFile."git/global_gitignore".text = import ./.config/git/global_gitignore.nix { inherit config; inherit pkgs; };
|
||||||
xdg.configFile."dircolors".source = ./.config/dircolors;
|
xdg.configFile."dircolors".source = ./.config/dircolors;
|
||||||
xdg.configFile."xmodmap".source = ./.config/xmodmap;
|
xdg.configFile."xmodmap".source = ./.config/xmodmap;
|
||||||
|
|
Loading…
Reference in a new issue