another git
This commit is contained in:
@@ -1,10 +1,15 @@
|
|||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
osConfig,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
cfg = config.programs.git;
|
email = config.programs.git.userEmail;
|
||||||
sshKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIk/zMuOgZCX+bVCFDHxtoec96RaVfV4iG1Gohp0qHdU cnst@cnix";
|
isCnixpad = osConfig.networking.hostName == "cnixpad";
|
||||||
|
sshKey =
|
||||||
|
if isCnixpad
|
||||||
|
then "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMR2JiKLJMqI48/8lX9ZlG6RYcLMZRYAuk1IpYS72IDD adam@adampad"
|
||||||
|
else "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIk/zMuOgZCX+bVCFDHxtoec96RaVfV4iG1Gohp0qHdU cnst@cnix";
|
||||||
in {
|
in {
|
||||||
home.packages = [pkgs.gh];
|
home.packages = [pkgs.gh];
|
||||||
programs.git = {
|
programs.git = {
|
||||||
@@ -46,6 +51,6 @@ in {
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
xdg.configFile."git/allowed_signers".text = ''
|
xdg.configFile."git/allowed_signers".text = ''
|
||||||
${cfg.userEmail} namespaces="git" ${sshKey}
|
${email} namespaces="git" ${sshKey}
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,6 +76,9 @@
|
|||||||
eza = {
|
eza = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
ssh = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
wm = {
|
wm = {
|
||||||
hyprland = {
|
hyprland = {
|
||||||
|
|||||||
@@ -93,7 +93,7 @@
|
|||||||
samba = {
|
samba = {
|
||||||
enable = false;
|
enable = false;
|
||||||
};
|
};
|
||||||
ssh = {
|
openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -94,7 +94,7 @@
|
|||||||
samba = {
|
samba = {
|
||||||
enable = false;
|
enable = false;
|
||||||
};
|
};
|
||||||
ssh = {
|
openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user