From 5dcf677d1284b20136e95265d28e504e279f5c43 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Thu, 5 Sep 2024 23:13:44 +0200 Subject: [PATCH] Revert "Add installer image package" This reverts commit 415d9e829f6f6c78931b132f8d0774ad20828d12. --- flake.nix | 21 --- machines/installer-image/default.nix | 183 --------------------------- 2 files changed, 204 deletions(-) delete mode 100644 machines/installer-image/default.nix diff --git a/flake.nix b/flake.nix index 62cfb0e..572c939 100644 --- a/flake.nix +++ b/flake.nix @@ -3,16 +3,11 @@ inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05"; - nixos-generators = { - url = "github:nix-community/nixos-generators"; - inputs.nixpkgs.follows = "nixpkgs"; - }; }; outputs = { self, nixpkgs, - nixos-generators, } @ inputs: let supportedSystems = [ "aarch64-darwin" @@ -76,22 +71,6 @@ ''; installer-iso = inputs.self.nixosConfigurations.installer.config.system.build.isoImage; - - installer-image = nixos-generators.nixosGenerate { - system = system; - specialArgs = { - pkgs = pkgs; - diskSize = 20 * 1024; - }; - modules = [ - # Pin nixpkgs to the flake input, so that the packages installed - # come from the flake inputs.nixpkgs.url. - ({ ... }: { nix.registry.nixpkgs.flake = nixpkgs; }) - # Apply the rest of the config. - ./machines/installer-image - ]; - format = "raw-efi"; - }; }); apps = forAllSystems (system: { diff --git a/machines/installer-image/default.nix b/machines/installer-image/default.nix deleted file mode 100644 index dcb7707..0000000 --- a/machines/installer-image/default.nix +++ /dev/null @@ -1,183 +0,0 @@ -{ - config, - lib, - options, - pkgs, - inputs, - modulesPath, - ... -}: -with lib; let - calamares-nixos-autostart = pkgs.makeAutostartItem { - name = "io.calamares.calamares"; - package = pkgs.calamares-nixos; - }; - calamares-extensions-desk-os = pkgs.callPackage ../../packages/calamares-extensions {}; -in { - imports = [ - (modulesPath + "/profiles/all-hardware.nix") - (modulesPath + "/profiles/base.nix") - (modulesPath + "/profiles/installation-device.nix") - ]; - - nixpkgs = { - hostPlatform = lib.mkDefault "x86_64-linux"; - config.allowUnfree = true; - }; - - nix = { - settings.experimental-features = ["nix-command" "flakes"]; - extraOptions = "experimental-features = nix-command flakes"; - }; - - boot = { - supportedFilesystems = lib.mkForce ["btrfs" "reiserfs" "vfat" "f2fs" "xfs" "ntfs" "cifs"]; - }; - - networking.hostName = "desk-os-installer"; - - services.openssh.enable = lib.mkForce false; - - # Inhibit sleep, suspend, hibernate - systemd.targets = { - sleep.enable = false; - suspend.enable = false; - hibernate.enable = false; - hybrid-sleep.enable = false; - }; - - boot = { - consoleLogLevel = 0; - kernelParams = ["quiet"]; - initrd.verbose = false; - loader.systemd-boot.enable = true; - loader.timeout = lib.mkForce 0; - plymouth = { - enable = true; - theme = "breeze"; - }; - }; - - # Adds terminus_font for people with HiDPI displays - console.packages = options.console.packages.default ++ [pkgs.terminus_font]; - - # An installation media cannot tolerate a host config defined file - # system layout on a fresh machine, before it has been formatted. - swapDevices = mkImageMediaOverride []; - # fileSystems = mkImageMediaOverride config.lib.isoFileSystems; - - boot.postBootCommands = '' - for o in $(