From d9f7a944af499bb266c33efd16e7eec3bfb80d04 Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Mon, 22 May 2023 15:09:04 +0200 Subject: [PATCH] web-01: Reformat --- machines/web-01/disko.nix | 9 +++++---- machines/web-01/ssh.nix | 3 ++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/machines/web-01/disko.nix b/machines/web-01/disko.nix index b9a5f8e..52c9262 100644 --- a/machines/web-01/disko.nix +++ b/machines/web-01/disko.nix @@ -1,6 +1,7 @@ -{...}: -let - luksName = "mainfs"; +_: + +let + luksName = "mainfs"; in { boot.initrd.luks.devices.${luksName} = { @@ -33,7 +34,7 @@ in start = "512MiB"; end = "-4GiB"; content = rec { - type = "luks"; + type = "luks"; name = luksName; extraOpenArgs = [ "--keyfile-size=1" ]; extraFormatArgs = extraOpenArgs; diff --git a/machines/web-01/ssh.nix b/machines/web-01/ssh.nix index 0f3a438..bb2c346 100644 --- a/machines/web-01/ssh.nix +++ b/machines/web-01/ssh.nix @@ -1,4 +1,5 @@ -{ ... }: +_: + { services.openssh = { passwordAuthentication = false;