From a6858dca2565fdacba0852aeb77e638f0dc886c2 Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Mon, 13 Apr 2026 11:00:14 -0500 Subject: add ability to use unstable packages in config and use unstable.sparrow --- archetypes/collections/desktop/crypto.nix | 2 +- flake.lock | 17 +++++++++++++++++ flake.nix | 1 + pkgs/default.nix | 8 +++++++- 4 files changed, 26 insertions(+), 2 deletions(-) diff --git a/archetypes/collections/desktop/crypto.nix b/archetypes/collections/desktop/crypto.nix index f90919e..bfb9186 100644 --- a/archetypes/collections/desktop/crypto.nix +++ b/archetypes/collections/desktop/crypto.nix @@ -7,7 +7,7 @@ in { config = lib.mkIf cfg.enable { environment.systemPackages = with pkgs; [ - sparrow + unstable.sparrow ]; }; } diff --git a/flake.lock b/flake.lock index 70cc488..fed05a3 100644 --- a/flake.lock +++ b/flake.lock @@ -97,6 +97,22 @@ "type": "github" } }, + "nixpkgs-unstable": { + "locked": { + "lastModified": 1775710090, + "narHash": "sha256-ar3rofg+awPB8QXDaFJhJ2jJhu+KqN/PRCXeyuXR76E=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "4c1018dae018162ec878d42fec712642d214fdfa", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, "pre-commit": { "inputs": { "flake-compat": [ @@ -148,6 +164,7 @@ "arkenfox": "arkenfox", "home-manager": "home-manager", "nixpkgs": "nixpkgs", + "nixpkgs-unstable": "nixpkgs-unstable", "reposync": "reposync", "sops-nix": "sops-nix" } diff --git a/flake.nix b/flake.nix index c5e22c6..708f390 100644 --- a/flake.nix +++ b/flake.nix @@ -3,6 +3,7 @@ rec { inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11"; + nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; sops-nix = { url = "github:Mic92/sops-nix"; diff --git a/pkgs/default.nix b/pkgs/default.nix index aae0751..fb76338 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: { +{ pkgs, inputs, ... }: { nixpkgs.overlays = with pkgs; [ (final: prev: { immich-frame = (callPackage ./immich-frame {}); @@ -28,5 +28,11 @@ }) (import ./st/overrides.nix) (import ./xorg/overrides.nix) + # Allow installing unstable packages via pkgs.unstable. + (final: prev: { + unstable = import inputs.nixpkgs-unstable { + inherit (final) system; + }; + }) ]; } -- cgit v1.2.3