Skip to content

Commit a5c4f1b

Browse files
committed
home-manager: shared ssh config between hosts
1 parent 75a21a1 commit a5c4f1b

File tree

3 files changed

+12
-14
lines changed

3 files changed

+12
-14
lines changed

homeModules/default.nix

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,16 @@
66
config = {
77
home-manager.users.juuso = _: {
88
home.stateVersion = config.system.stateVersion;
9-
programs.mergiraf.enable = true;
9+
programs = {
10+
mergiraf.enable = true;
11+
ssh = {
12+
enable = true;
13+
matchBlocks."*" = {
14+
hashKnownHosts = true;
15+
identityFile = "~/.ssh/id_ed25519_sk_rk";
16+
};
17+
};
18+
};
1019
services.mako.enable = true;
1120
};
1221
};

nixosConfigurations/starlabs/default.nix

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ pkgs, config, lib, ... }:
1+
{ pkgs, config, ... }:
22
{
33

44
boot = {
@@ -310,17 +310,6 @@
310310
PASSWORD_STORE_CLIP_TIME = "60";
311311
};
312312
};
313-
314-
programs.ssh = {
315-
enable = true;
316-
hashKnownHosts = true;
317-
matchBlocks = {
318-
"*" = {
319-
identityFile = "~/.ssh/id_ed25519_sk_rk_starlabs";
320-
};
321-
};
322-
};
323-
324313
};
325314

326315
system.etc.overlay.mutable = false;

nixosModules/juuso/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
tag.sort = "version:refname";
7474
user.email = "juuso@ponkila.com";
7575
user.name = "Juuso Haavisto";
76-
user.signingkey = "/home/juuso/.ssh/id_ed25519_sk_rk_starlabs";
76+
user.signingkey = "/home/juuso/.ssh/id_ed25519_sk_rk";
7777
};
7878
};
7979
services = {

0 commit comments

Comments
 (0)