mirror of
https://github.com/ItsDrike/nixdots
synced 2025-06-29 07:00:41 +00:00
Add git configuration
This commit is contained in:
parent
a9cdf25a57
commit
329f48882e
9 changed files with 223 additions and 0 deletions
|
@ -1,6 +1,10 @@
|
|||
{ lib, ... }: with lib; let
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
./git.nix
|
||||
];
|
||||
|
||||
options.myOptions.home-manager = {
|
||||
enabled = mkOption {
|
||||
type = types.bool;
|
||||
|
|
18
options/home/git.nix
Normal file
18
options/home/git.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{ lib, ... }: with lib; let
|
||||
in
|
||||
{
|
||||
options.myOptions.home-manager.git = {
|
||||
signing = {
|
||||
enabled = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = "Should commits and tags be sgined by default?";
|
||||
};
|
||||
key = mkOption {
|
||||
type = types.str;
|
||||
default = "";
|
||||
description = "The defaul GPG key fingerprint for signing.";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue