another git

This commit is contained in:
cnst
2024-09-23 20:19:50 +02:00
parent 5dd14311d6
commit bd15e37d5f
4 changed files with 13 additions and 5 deletions

View File

@@ -1,10 +1,15 @@
{
config,
pkgs,
osConfig,
...
}: let
cfg = config.programs.git;
sshKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIk/zMuOgZCX+bVCFDHxtoec96RaVfV4iG1Gohp0qHdU cnst@cnix";
email = config.programs.git.userEmail;
isCnixpad = osConfig.networking.hostName == "cnixpad";
sshKey =
if isCnixpad
then "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMR2JiKLJMqI48/8lX9ZlG6RYcLMZRYAuk1IpYS72IDD adam@adampad"
else "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIk/zMuOgZCX+bVCFDHxtoec96RaVfV4iG1Gohp0qHdU cnst@cnix";
in {
home.packages = [pkgs.gh];
programs.git = {
@@ -46,6 +51,6 @@ in {
];
};
xdg.configFile."git/allowed_signers".text = ''
${cfg.userEmail} namespaces="git" ${sshKey}
${email} namespaces="git" ${sshKey}
'';
}

View File

@@ -76,6 +76,9 @@
eza = {
enable = true;
};
ssh = {
enable = true;
};
};
wm = {
hyprland = {

View File

@@ -93,7 +93,7 @@
samba = {
enable = false;
};
ssh = {
openssh = {
enable = true;
};
};

View File

@@ -94,7 +94,7 @@
samba = {
enable = false;
};
ssh = {
openssh = {
enable = true;
};
};