set up ssh signing

This commit is contained in:
Charlie Root 2024-07-21 13:18:00 +02:00
commit 917c7043ae
19 changed files with 389 additions and 323 deletions

View file

@ -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
View 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";
};
};
}

View file

@ -30,9 +30,5 @@ in {
isNormalUser = true;
extraGroups = ["wheel"];
};
users.users.test = {
isNormalUser = true;
extraGroups = ["wheel"];
};
};
}