Skip to content

Commit

Permalink
shared/nix: fix sshKey optionalAttr for khanelinix
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Oct 20, 2024
1 parent 4624087 commit b7160ce
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions modules/shared/nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,18 @@ in
];
in
[
(lib.mkIf (host != "khanelimac") {
inherit protocol sshUser systems;
hostName = "khanelimac.local";
maxJobs = 8;
speedFactor = 5;
supportedFeatures = supportedFeatures ++ [ "apple-virt" ];
sshKey = config.sops.secrets.khanelinix_khaneliman_ssh_key.path;
})
(
lib.mkIf (host != "khanelimac") {
inherit protocol sshUser systems;
hostName = "khanelimac.local";
maxJobs = 8;
speedFactor = 5;
supportedFeatures = supportedFeatures ++ [ "apple-virt" ];
}
// lib.optionalAttrs (host == "khanelinix") {
sshKey = config.sops.secrets.khanelinix_khaneliman_ssh_key.path;
}
)
(
{
inherit protocol sshUser systems;
Expand Down

0 comments on commit b7160ce

Please sign in to comment.