summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2026-04-13 11:00:14 -0500
committerTim Keller <tjk@tjkeller.xyz>2026-04-13 11:00:14 -0500
commita6858dca2565fdacba0852aeb77e638f0dc886c2 (patch)
tree61f819786fe04cbe054a86bd36bb0366982ed591
parentda3e6ade8765b67123360d902051ac352ad02ef0 (diff)
downloadnixos-master.tar.xz
nixos-master.zip
add ability to use unstable packages in config and use unstable.sparrowHEADmaster
-rw-r--r--archetypes/collections/desktop/crypto.nix2
-rw-r--r--flake.lock17
-rw-r--r--flake.nix1
-rw-r--r--pkgs/default.nix8
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.<name>
+ (final: prev: {
+ unstable = import inputs.nixpkgs-unstable {
+ inherit (final) system;
+ };
+ })
];
}