mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
initrd.network: use sops-nix
This commit is contained in:
parent
24118810a2
commit
e337aac7f1
1 changed files with 4 additions and 2 deletions
|
@ -1,6 +1,8 @@
|
|||
{ pkgs, ... }:
|
||||
{ pkgs, config, ... }:
|
||||
|
||||
{
|
||||
sops.secrets.initrd_ssh_key = { };
|
||||
|
||||
boot.initrd.network = {
|
||||
enable = true;
|
||||
|
||||
|
@ -8,7 +10,7 @@
|
|||
enable = true;
|
||||
port = 2222;
|
||||
hostKeys = [
|
||||
/etc/secrets/initrd/ssh_host_ed25519_key
|
||||
config.sops.secrets.initrd_ssh_key.path
|
||||
];
|
||||
authorizedKeys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOFx6OLwL9MbkD3mnMsv+xrzZHN/rwCTgVs758SCLG0h felix@thinkman"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue