mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-25 21:30:52 +01:00
chore: adapt ssh-client to meta module
This commit is contained in:
parent
976e422038
commit
9e9a7027e9
1 changed files with 37 additions and 33 deletions
|
@ -11,9 +11,13 @@ with lib;
|
|||
config = mkIf cfg.enable {
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
matchBlocks = lib.mapAttrs
|
||||
(n: v: { hostname = "${n}.${lib.luj.tld}"; user = v.sshUser; port = v.sshPort; })
|
||||
lib.luj.machines // {
|
||||
matchBlocks =
|
||||
lib.mapAttrs (n: v: {
|
||||
hostname = "${n}.${lib.snowfield.${n}.tld}";
|
||||
user = v.sshUser;
|
||||
port = v.sshPort;
|
||||
}) lib.snowfield
|
||||
// {
|
||||
sas = {
|
||||
hostname = "sas.eleves.ens.fr";
|
||||
user = "jmalka";
|
||||
|
|
Loading…
Add table
Reference in a new issue