From d286dd647466156b0775bb869e5f1b08a296cbf4 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Mon, 27 Jan 2025 13:09:32 -0500 Subject: [PATCH] hosts: drop iso As alluded to in the previous commit, I don't actually have a need to create a custom iso due to the power of Nix and NixOS. --- flake.nix | 6 ----- hosts/iso/configuration.nix | 48 ------------------------------------- 2 files changed, 54 deletions(-) delete mode 100644 hosts/iso/configuration.nix diff --git a/flake.nix b/flake.nix index de9ae27f..a736b157 100644 --- a/flake.nix +++ b/flake.nix @@ -78,12 +78,6 @@ specialArgs.nix-config = self; modules = listFilesRecursive ./hosts/laptop; }; - - iso = nixosSystem { - system = "x86_64-linux"; - specialArgs.nix-config = self; - modules = listFilesRecursive ./hosts/iso; - }; }; formatter = forAllSystems (pkgs: pkgs.nixfmt-rfc-style); diff --git a/hosts/iso/configuration.nix b/hosts/iso/configuration.nix deleted file mode 100644 index c493730e..00000000 --- a/hosts/iso/configuration.nix +++ /dev/null @@ -1,48 +0,0 @@ -{ - pkgs, - lib, - modulesPath, - nix-config, - ... -}: - -let - inherit (builtins) attrValues; - - username = "nixos"; -in -{ - imports = [ - (modulesPath + "/installer/cd-dvd/installation-cd-minimal.nix") - - nix-config.inputs.home-manager.nixosModules.home-manager - ] ++ (with nix-config.nixosModules; [ - stylix - fonts - desktop - librewolf - shell - ]); - - nixpkgs.overlays = attrValues nix-config.overlays; - environment.systemPackages = attrValues nix-config.packages.${pkgs.system}; - - home-manager = { - useGlobalPkgs = true; - useUserPackages = true; - - sharedModules = - attrValues nix-config.homeModules - ++ lib.singleton { - home.stateVersion = "24.11"; - }; - - users.${username}.home = { - inherit username; - - homeDirectory = "/home/${username}"; - }; - }; - - isoImage.squashfsCompression = "gzip -Xcompression-level 1"; -}