Compare commits
2
Commits
99cc8efea0
...
2476be3799
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2476be3799 | ||
|
|
08111e7a8a |
@@ -9,6 +9,7 @@
|
|||||||
let
|
let
|
||||||
builderHosts = lib.filterAttrs (_n: v: (builtins.hasAttr "builder" v) && v.builder) metadata.hosts;
|
builderHosts = lib.filterAttrs (_n: v: (builtins.hasAttr "builder" v) && v.builder) metadata.hosts;
|
||||||
cfg = config.greg.nix;
|
cfg = config.greg.nix;
|
||||||
|
hostname = x: if cfg.cache then "${x}.shire-zebra.ts.net" else "${x}.thehellings.lan";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.greg.nix = {
|
options.greg.nix = {
|
||||||
@@ -22,7 +23,7 @@ in
|
|||||||
programs.ssh.extraConfig = builtins.concatStringsSep "\n" (
|
programs.ssh.extraConfig = builtins.concatStringsSep "\n" (
|
||||||
lib.map (x: ''
|
lib.map (x: ''
|
||||||
Host ${x}-builder
|
Host ${x}-builder
|
||||||
Hostname ${x}.shire-zebra.ts.net
|
Hostname ${hostname x}
|
||||||
User remote-builder-user
|
User remote-builder-user
|
||||||
'') (lib.attrNames builderHosts)
|
'') (lib.attrNames builderHosts)
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ with lib;
|
|||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBLOqwbp4hFYkiJpokh9i2RToa/6tQcwthDNQH69tyBF root@vm-matrix.thehellings.lan"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBLOqwbp4hFYkiJpokh9i2RToa/6tQcwthDNQH69tyBF root@vm-matrix.thehellings.lan"
|
||||||
# Mac
|
# Mac
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBT5BFHQz1I5k/zkLQNLjL77EaqfdpRiF2Ci4eS9LMDK gregory.hellings@jude.thehellings.lan"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBT5BFHQz1I5k/zkLQNLjL77EaqfdpRiF2Ci4eS9LMDK gregory.hellings@jude.thehellings.lan"
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPVlMoN2pkKRRwKNuMbMczki5ybR34wvjdgDNlgR74Wh greg@gregs-MacBook-Pro-16-inch-Nov-2024"
|
||||||
];
|
];
|
||||||
homeMode = "500";
|
homeMode = "500";
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user