another git
This commit is contained in:
@@ -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}
|
||||
'';
|
||||
}
|
||||
|
||||
@@ -76,6 +76,9 @@
|
||||
eza = {
|
||||
enable = true;
|
||||
};
|
||||
ssh = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
wm = {
|
||||
hyprland = {
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
samba = {
|
||||
enable = false;
|
||||
};
|
||||
ssh = {
|
||||
openssh = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -94,7 +94,7 @@
|
||||
samba = {
|
||||
enable = false;
|
||||
};
|
||||
ssh = {
|
||||
openssh = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user