move ssh key to variable for DRYness
This commit is contained in:
committed by
Joakim Repomaa
parent
7a24ac5fe6
commit
6aa0640684
@@ -1,13 +1,11 @@
|
||||
{ pkgs, bin, ... }:
|
||||
{ pkgs, bin, ssh, ... }:
|
||||
let
|
||||
fqdn = "bin.freun.dev";
|
||||
port = 3600;
|
||||
sshPort = bin.sshPort;
|
||||
authorizedKeys = pkgs.writeTextFile {
|
||||
name = "authorized_keys";
|
||||
text = ''
|
||||
ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBLIUkESu5NnBi1M0+ZjYrkp6/rIFuwc3aguspf98jmOydNce6l65cnS3GRzc9oWx4lu11ahi87ZuE+pYV+gaHm4=
|
||||
'';
|
||||
text = ssh.publicKeys.yubikey;
|
||||
};
|
||||
in
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user