mirror of
https://github.com/ellmau/nixos.git
synced 2025-12-19 09:29:36 +01:00
Add meta value for machine-based git user preferences
This commit is contained in:
parent
1f7a6a4606
commit
8eb8df1637
@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, ...}:
|
{ config, pkgs, inputs, ...}:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../../common/users.nix
|
../../common/users.nix
|
||||||
@ -20,18 +20,17 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
admins = [ "ellmau" ];
|
admins = [ "ellmau" ];
|
||||||
users = [ ];
|
users = [ ];
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
variables = {
|
meta = {
|
||||||
hostName = "stel-xps";
|
ellmau.git = {
|
||||||
graphical = true;
|
|
||||||
git = {
|
|
||||||
key = "0x4998BEEE";
|
key = "0x4998BEEE";
|
||||||
gpgsm = true;
|
gpgsm = true;
|
||||||
signDefault = true;
|
signDefault = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
#networking.hostName = "stel-xps"; # define the hostname
|
#networking.hostName = "stel-xps"; # define the hostname
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|||||||
@ -34,6 +34,29 @@ with lib; {
|
|||||||
type = types.str;
|
type = types.str;
|
||||||
description = "Email address of the user";
|
description = "Email address of the user";
|
||||||
};
|
};
|
||||||
|
git = mkOption {
|
||||||
|
type = types.attrsOf
|
||||||
|
(types.submodule {
|
||||||
|
options = {
|
||||||
|
key = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
example = "0xBEEE1234";
|
||||||
|
default = "C804A9C1B7AF8256";
|
||||||
|
description = "Signkey for git commits";
|
||||||
|
};
|
||||||
|
gpgsm = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
description = "Whether to use gpgsm for commit signatures";
|
||||||
|
};
|
||||||
|
signDefault = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
description = "Whether to force signing commits or not";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
});
|
||||||
|
};
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user