From 12236a3e49686f62b37f94151554fe9b5e434173 Mon Sep 17 00:00:00 2001 From: MFlossmann Date: Sat, 11 May 2024 13:07:32 +0200 Subject: [PATCH] try to add a stable nixpkgs overlay --- flake.nix | 1 - helperLib/default.nix | 5 +++++ modules/home/bundles/graphicDesign.nix | 3 +-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 8a017c6..8e2547f 100644 --- a/flake.nix +++ b/flake.nix @@ -19,7 +19,6 @@ outputs = {...} @ inputs: let # basic boilerplate-reducing lib with a bunch of functions helperLib = import ./helperLib/default.nix {inherit inputs;}; - stablepkgs = inputs.nixpkgs-stable; in with helperLib; { nixosConfigurations = { diff --git a/helperLib/default.nix b/helperLib/default.nix index c7002f4..1bd1e8f 100644 --- a/helperLib/default.nix +++ b/helperLib/default.nix @@ -1,6 +1,9 @@ {inputs}: let helperLib = (import ./default.nix) {inherit inputs;}; outputs = inputs.self.outputs; + overlay-stable = final: prev: { + stable = inputs.nixpkgs-stable.legacyPackages.${prev.system}; + }; in rec { # ================================================================ # # = My Lib = # @@ -18,6 +21,7 @@ in rec { inherit inputs outputs helperLib; }; modules = [ + ({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-stable ]; }) config outputs.nixosModules.default ]; @@ -30,6 +34,7 @@ in rec { inherit inputs helperLib outputs; }; modules = [ + ({ config, pkgs, ...}: { nixpkgs.overlays = [ overlay-stable ]; }) config outputs.homeManagerModules.default ]; diff --git a/modules/home/bundles/graphicDesign.nix b/modules/home/bundles/graphicDesign.nix index 5ea542b..b6dc583 100644 --- a/modules/home/bundles/graphicDesign.nix +++ b/modules/home/bundles/graphicDesign.nix @@ -3,13 +3,12 @@ config, lib, inputs, - stablepkgs, ... }: { imports = []; home.packages = with pkgs; [ - stablepkgs.inkscape + inkscape gimp krita ];