From 087a6fe757b6ae3d171df613207ef5ace41f8e80 Mon Sep 17 00:00:00 2001 From: Gene Liverman Date: Wed, 4 Dec 2024 06:54:47 -0500 Subject: [PATCH] Stop redefining nixpkgs on NixOS --- flake.nix | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/flake.nix b/flake.nix index 4c85f9a..41f105a 100644 --- a/flake.nix +++ b/flake.nix @@ -119,17 +119,20 @@ # creates a nixos system config nixosHostConfig = { system, hostname, username, additionalModules, additionalSpecialArgs }: nixpkgs.lib.nixosSystem { - specialArgs = { inherit inputs compose2nix hostname username; - pkgs = import nixpkgs { - inherit system; - config = { - allowUnfree = true; - permittedInsecurePackages = [ "olm-3.2.16" "electron-27.3.11" ]; - }; - overlays = [ nixpkgs-terraform.overlays.default ]; - }; - } // additionalSpecialArgs; + inherit system; + specialArgs = { inherit inputs compose2nix hostname username; } // additionalSpecialArgs; modules = [ + # move this to a common file later + ({ + nixpkgs = { + config = { + allowUnfree = true; + permittedInsecurePackages = [ "olm-3.2.16" "electron-27.3.11" ]; + }; + overlays = [ nixpkgs-terraform.overlays.default ]; + }; + }) + disko.nixosModules.disko home-manager.nixosModules.home-manager {