mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-28 14:50:55 +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 {
|
config = mkIf cfg.enable {
|
||||||
programs.ssh = {
|
programs.ssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
matchBlocks = lib.mapAttrs
|
matchBlocks =
|
||||||
(n: v: { hostname = "${n}.${lib.luj.tld}"; user = v.sshUser; port = v.sshPort; })
|
lib.mapAttrs (n: v: {
|
||||||
lib.luj.machines // {
|
hostname = "${n}.${lib.snowfield.${n}.tld}";
|
||||||
|
user = v.sshUser;
|
||||||
|
port = v.sshPort;
|
||||||
|
}) lib.snowfield
|
||||||
|
// {
|
||||||
sas = {
|
sas = {
|
||||||
hostname = "sas.eleves.ens.fr";
|
hostname = "sas.eleves.ens.fr";
|
||||||
user = "jmalka";
|
user = "jmalka";
|
||||||
|
|
Loading…
Add table
Reference in a new issue