From 055fdb9fcf99ce1c2203aa16775b3c83450e849b Mon Sep 17 00:00:00 2001 From: Constantin Gierczak--Galle Date: Thu, 21 Nov 2024 19:08:49 +0100 Subject: [PATCH] feat(photo01): secrets and disk config --- machines/photo01/_configuration.nix | 1 - machines/photo01/_hardware-configuration.nix | 10 ++++++++++ machines/photo01/secrets/secrets.nix | 1 - 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/machines/photo01/_configuration.nix b/machines/photo01/_configuration.nix index 2333eaa..5faeb18 100644 --- a/machines/photo01/_configuration.nix +++ b/machines/photo01/_configuration.nix @@ -15,7 +15,6 @@ in deployment.targetHost = address; networking = { - hostName = "photoprism"; firewall.allowedTCPPorts = [ 22 80 diff --git a/machines/photo01/_hardware-configuration.nix b/machines/photo01/_hardware-configuration.nix index 6fd864e..e87eb0d 100644 --- a/machines/photo01/_hardware-configuration.nix +++ b/machines/photo01/_hardware-configuration.nix @@ -19,6 +19,16 @@ }; + fileSystems."/" = { + device = "/dev/disk/by-partlabel/disk-sda-root"; + fsType = "ext4"; + }; + + fileSystems."/boot" = { + device = "/dev/disk/by-partlabel/disk-sda-ESP"; + fsType = "vfat"; + }; + networking.useDHCP = lib.mkDefault false; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; diff --git a/machines/photo01/secrets/secrets.nix b/machines/photo01/secrets/secrets.nix index 9be5034..4f61be6 100644 --- a/machines/photo01/secrets/secrets.nix +++ b/machines/photo01/secrets/secrets.nix @@ -1,4 +1,3 @@ (import ../../../keys).mkSecrets [ "photo01" ] [ # List of secrets for router02 ] -