set up ssh signing
This commit is contained in:
parent
0cc4d34af1
commit
917c7043ae
19 changed files with 389 additions and 323 deletions
|
@ -1 +1 @@
|
|||
_: {imports = [./home-manager.nix ./system.nix ./xdg.nix];}
|
||||
_: {imports = [./home-manager.nix ./system.nix ./xdg.nix ./git.nix];}
|
||||
|
|
13
modules/other/git.nix
Normal file
13
modules/other/git.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{config, ...}: let
|
||||
inherit (config.modules.other.system) username;
|
||||
in {
|
||||
home-manager.users.${username} = {
|
||||
programs.git = {
|
||||
signing = {
|
||||
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILPiRe9OH/VtWFWyy5QbAVcN7CLxr4zUtRCwmxD6aeN6";
|
||||
signByDefault = true;
|
||||
};
|
||||
extraConfig.gpg.format = "ssh";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -30,9 +30,5 @@ in {
|
|||
isNormalUser = true;
|
||||
extraGroups = ["wheel"];
|
||||
};
|
||||
users.users.test = {
|
||||
isNormalUser = true;
|
||||
extraGroups = ["wheel"];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue