diff --git a/machines/photo01/_configuration.nix b/machines/photo01/_configuration.nix index 0f385bd..f414ad6 100644 --- a/machines/photo01/_configuration.nix +++ b/machines/photo01/_configuration.nix @@ -14,23 +14,21 @@ in ]; # Bootloader. - boot.loader.systemd-boot.enable = true; networking = { - hostName = "photoprism"; + hostName = "photoprism"; - firewall.allowedTCPPorts = [ - 22 - 80 - 443 - 8007 - ]; - firewall.allowedUDPPorts = [ ]; + firewall.allowedTCPPorts = [ + 22 + 80 + 443 + 8007 + ]; + firewall.allowedUDPPorts = [ ]; - useNetworkd = true; + useNetworkd = true; }; - disko.devices = import ./disko.nix; deployment.targetHost = address; @@ -55,7 +53,6 @@ in security.acme.acceptTerms = true; security.acme.defaults.email = "webmaster@nixos.org"; - systemd.network = { config.routeTables = { he = 100; diff --git a/machines/photo01/_hardware-configuration.nix b/machines/photo01/_hardware-configuration.nix index d9ffbf4..e081e13 100644 --- a/machines/photo01/_hardware-configuration.nix +++ b/machines/photo01/_hardware-configuration.nix @@ -3,7 +3,12 @@ { imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]; - boot.initrd.availableKernelModules = [ + boot = { + loader.systemd-boot.enable = true; + initrd.kernelModules = [ ]; + kernelModules = [ ]; + extraModulePackages = [ ]; + initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" @@ -11,9 +16,8 @@ "sd_mod" "sr_mod" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ ]; - boot.extraModulePackages = [ ]; + + }; networking.useDHCP = lib.mkDefault false;