From abb672ea9ef69c50e066070f356858d0dee438e5 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Tue, 10 Dec 2024 11:52:15 +0000 Subject: [PATCH] refactor(flake.nix): update `nixos-unstable` and add `nixos-master` - Updated `nixos-unstable.url` to point to the correct branch (`nixpkgs-unstable`) - Added `nixos-master` input pointing to the `master` branch of nixpkgs - Imported `nixos-master` in the outputs and created `masterPkgs` variable for potential use --- flake.nix | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 283b7f8..1e94b5b 100644 --- a/flake.nix +++ b/flake.nix @@ -1,7 +1,8 @@ { inputs = { nixpkgs.url = "github:NixOS/nixpkgs/release-24.11"; - nixos-unstable.url = "github:NixOS/nixpkgs/master"; + nixos-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + nixos-master.url = "github:NixOS/nixpkgs/master"; local-unstable.url = "path:///home/giulio/dev/nixpkgs"; teslamate-flake.url = "github:teslamate-org/teslamate/v1.32.0"; agenix-flake.url = "github:ryantm/agenix"; @@ -15,7 +16,17 @@ }; }; - outputs = { self, nixpkgs, nixos-unstable, local-unstable, home-manager, teslamate-flake, nvidia-patch, agenix-flake }: + outputs = + { self + , nixpkgs + , nixos-unstable + , nixos-master + , local-unstable + , home-manager + , teslamate-flake + , nvidia-patch + , agenix-flake + }: let sysLinuxX64 = "x86_64-linux"; sysDarwin = "aarch64-darwin"; @@ -41,6 +52,12 @@ overlays = extOverlays; }; + masterPkgs = import nixos-master { + inherit system config; + + overlays = extOverlays; + }; + localPkgs = import local-unstable { inherit system config; overlays = extOverlays;