diff options
| author | Tim Keller <tjk@tjkeller.xyz> | 2026-04-13 11:00:14 -0500 |
|---|---|---|
| committer | Tim Keller <tjk@tjkeller.xyz> | 2026-04-13 11:00:14 -0500 |
| commit | a6858dca2565fdacba0852aeb77e638f0dc886c2 (patch) | |
| tree | 61f819786fe04cbe054a86bd36bb0366982ed591 | |
| parent | da3e6ade8765b67123360d902051ac352ad02ef0 (diff) | |
| download | nixos-a6858dca2565fdacba0852aeb77e638f0dc886c2.tar.xz nixos-a6858dca2565fdacba0852aeb77e638f0dc886c2.zip | |
add ability to use unstable packages in config and use unstable.sparrow
| -rw-r--r-- | archetypes/collections/desktop/crypto.nix | 2 | ||||
| -rw-r--r-- | flake.lock | 17 | ||||
| -rw-r--r-- | flake.nix | 1 | ||||
| -rw-r--r-- | 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 ]; }; } @@ -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" } @@ -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.<name> + (final: prev: { + unstable = import inputs.nixpkgs-unstable { + inherit (final) system; + }; + }) ]; } |
