update locks, use one password for signing, move deprecated options

This commit is contained in:
Christoph Hollizeck 2024-04-14 10:11:30 +02:00
parent 5c80e6ba80
commit d7b0c7cdee
Signed by: Daholli
GPG key ID: 249300664F2AF2C7
9 changed files with 62 additions and 55 deletions

View file

@ -16,7 +16,9 @@ in
enable = mkBoolOpt true "Wether or not to enable git (Default enabled)";
userName = mkOpt types.str user.fullName "The name to use git with";
userEmail = mkOpt types.str user.email "The email to use git with";
signingKey = mkOpt types.str "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN4iH29edivUi+k94apb6pasWq8qphfhYo0d6B2GhISf" "The key ID to sign commits with.";
signingKey =
mkOpt types.str "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN4iH29edivUi+k94apb6pasWq8qphfhYo0d6B2GhISf"
"The key ID to sign commits with.";
};
config = mkIf cfg.enable {
@ -47,7 +49,7 @@ in
safe = {
directory = "${config.users.users.${user.name}.home}/projects/config";
};
gpg ={
gpg = {
format = "ssh";
"ssh".program = "${pkgs._1password-gui}/bin/op-ssh-sign";
};