Added legion's user key. Added git signing. Started moving to common
This commit is contained in:
parent
4feb1095ed
commit
d9fe2b30ee
8 changed files with 46 additions and 19 deletions
24
modules/shared/common/default.nix
Normal file
24
modules/shared/common/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
config,
|
||||
configurationName,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
settei.user.config = {
|
||||
programs.git = {
|
||||
enable = true;
|
||||
difftastic.enable = true;
|
||||
lfs.enable = true;
|
||||
userName = "Nikodem Rabuliński";
|
||||
userEmail = lib.mkDefault "nikodem@rabulinski.com";
|
||||
signing = {
|
||||
key = config.settei.sane-defaults.allSshKeys.${configurationName};
|
||||
signByDefault = true;
|
||||
};
|
||||
extraConfig = {
|
||||
gpg.format = "ssh";
|
||||
push.followTags = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -36,6 +36,9 @@
|
|||
or (throw "pass configurationName to module arguments or set networking.hostName yourself")
|
||||
);
|
||||
|
||||
# Flakes are unusable without git present so pull it into the environment by default
|
||||
settei.user.config.programs.git.enable = lib.mkDefault true;
|
||||
|
||||
nix = {
|
||||
settings = {
|
||||
experimental-features = ["nix-command" "flakes" "repl-flake" "auto-allocate-uids"];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue