mirror of https://gitlab.crans.org/nounous/nixos
Builder sur cephiroth
parent
df4c48707b
commit
82fe0add92
|
|
@ -0,0 +1,18 @@
|
|||
{ lib, hosts, ... }:
|
||||
let
|
||||
inherit (lib)
|
||||
attrValues
|
||||
concatMap
|
||||
optional
|
||||
;
|
||||
in
|
||||
{
|
||||
nix.trustedUsers = [ "builder" ];
|
||||
users.users.builder = {
|
||||
isSystemUser = true;
|
||||
# On autorise les clés publiques des VMs à se connecter.
|
||||
openssh.authorizedKeys.keys = concatMap (c: optional (c.publicSsh != null) c.publicSsh) (
|
||||
attrValues hosts
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
@ -5,6 +5,7 @@
|
|||
./hardware-configuration.nix
|
||||
./networking.nix
|
||||
./ceph.nix
|
||||
./builder.nix
|
||||
];
|
||||
|
||||
networking.hostId = "bbdd1133";
|
||||
|
|
|
|||
|
|
@ -25,5 +25,7 @@
|
|||
nginx.enable = true;
|
||||
};
|
||||
|
||||
publicSsh = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEVfKNokHG6ig32hhQxTep+fKFmKahlDClPrX/dP4/gb root@livre";
|
||||
|
||||
resticClient.when = "03:45";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,5 +12,7 @@
|
|||
};
|
||||
};
|
||||
|
||||
publicSsh = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPpaGf8A+XWXBdNrs69RiC0qPbjPHdtkl31OjxrktmF6 root@two";
|
||||
|
||||
resticClient.when = "07:29";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,8 +35,9 @@ in
|
|||
default = false;
|
||||
};
|
||||
|
||||
public-ssh = mkOption {
|
||||
type = types.str;
|
||||
publicSsh = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description = "Clé ssh publique de la machine.";
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue