about summary refs log tree commit diff stats
path: root/flake.nix
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2024-03-24 16:32:50 +0100
committerSoispha <soispha@vhack.eu>2024-03-24 16:37:12 +0100
commit541a6666530a9e59a31a30a3273560ff48497211 (patch)
tree3c4cbfb27ff87f688da3d2137ba609d25852fec5 /flake.nix
parentfix(treewide): Update the shell library version (diff)
downloadnixos-config-541a6666530a9e59a31a30a3273560ff48497211.tar.gz
nixos-config-541a6666530a9e59a31a30a3273560ff48497211.zip
refactor(flake): Use an attrs for including open prs
This change allows to me to faster add new nixpkgs versions.
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix17
1 files changed, 11 insertions, 6 deletions
diff --git a/flake.nix b/flake.nix
index 648b164a..f56b5e21 100644
--- a/flake.nix
+++ b/flake.nix
@@ -3,9 +3,10 @@
 
   inputs = {
     # base
+    nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-23.05";
     nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
+    # open nixpkgs prs
     nixpkgs-tfc.url = "github:soispha/nixpkgs/add-termfilechooser";
-    nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-23.05";
 
     # inputs for following
     systems = {
@@ -272,7 +273,11 @@
 
     # FIXME: this `nixpkgs` misses the configs applied to the other one
     nixpkgs_as_input = nixpkgs;
-    nixpkgs_tfc = nixpkgs-tfc;
+    nixpkgs_open_prs = {
+      inherit
+        nixpkgs-tfc
+        ;
+    };
     outputs = import ./flake {
       inherit
         # core
@@ -281,9 +286,9 @@
         system
         sysLib
         nixpkgs_as_input
-        nixpkgs_tfc
+        nixpkgs_open_prs
         # modules
-        
+
         home-manager
         nixVim
         nixos-generators
@@ -295,12 +300,12 @@
         lanzaboote
         nix-index-database
         # external dependencies
-        
+
         treefmt-nix
         user_js
         templates
         # my binaries
-        
+
         shell_library
         river_init_lesser
         yambar_memory