From edb1adeb2ded54653e620ae93c90082cc7164c32 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Fri, 11 Jul 2025 20:39:46 +0000 Subject: [PATCH] Remove unused configurations We are not, and will likely never be, on Hetzner's cloud. --- nixos-anywhere/flake.nix | 43 ---------------------------------------- 1 file changed, 43 deletions(-) diff --git a/nixos-anywhere/flake.nix b/nixos-anywhere/flake.nix index 2d524a9..839ca1a 100644 --- a/nixos-anywhere/flake.nix +++ b/nixos-anywhere/flake.nix @@ -12,13 +12,6 @@ ... }: { - nixosConfigurations.hetzner-cloud = nixpkgs.lib.nixosSystem { - system = "x86_64-linux"; - modules = [ - disko.nixosModules.disko - ./configuration.nix - ]; - }; # tested with 2GB/2CPU droplet, 1GB droplets do not have enough RAM for kexec nixosConfigurations.digitalocean = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; @@ -29,41 +22,5 @@ ./configuration.nix ]; }; - nixosConfigurations.hetzner-cloud-aarch64 = nixpkgs.lib.nixosSystem { - system = "aarch64-linux"; - modules = [ - disko.nixosModules.disko - ./configuration.nix - ]; - }; - - # Use this for all other targets - # nixos-anywhere --flake .#generic --generate-hardware-config nixos-generate-config ./hardware-configuration.nix - nixosConfigurations.generic = nixpkgs.lib.nixosSystem { - system = "x86_64-linux"; - modules = [ - disko.nixosModules.disko - ./configuration.nix - ./hardware-configuration.nix - ]; - }; - - # Slightly experimental: Like generic, but with nixos-facter (https://github.com/numtide/nixos-facter) - # nixos-anywhere --flake .#generic-nixos-facter --generate-hardware-config nixos-facter facter.json - nixosConfigurations.generic-nixos-facter = nixpkgs.lib.nixosSystem { - system = "x86_64-linux"; - modules = [ - disko.nixosModules.disko - ./configuration.nix - nixos-facter-modules.nixosModules.facter - { - config.facter.reportPath = - if builtins.pathExists ./facter.json then - ./facter.json - else - throw "Have you forgotten to run nixos-anywhere with `--generate-hardware-config nixos-facter ./facter.json`?"; - } - ]; - }; }; }