diff options
| -rw-r--r-- | archetypes/collections/desktop/crypto.nix | 2 | ||||
| -rw-r--r-- | flake.lock | 17 | ||||
| -rw-r--r-- | flake.nix | 1 | ||||
| -rw-r--r-- | nixos/services/immich.nix | 2 | ||||
| -rw-r--r-- | nixos/services/jellyfin.nix | 2 | ||||
| -rw-r--r-- | pkgs/default.nix | 8 |
6 files changed, 28 insertions, 4 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/nixos/services/immich.nix b/nixos/services/immich.nix index 408148b..f9b17d5 100644 --- a/nixos/services/immich.nix +++ b/nixos/services/immich.nix @@ -10,7 +10,7 @@ in { }; }; - config = { + config = lib.mkIf cfg.enable { containers.immich = { autoStart = true; privateNetwork = false; diff --git a/nixos/services/jellyfin.nix b/nixos/services/jellyfin.nix index cbb2326..8d04278 100644 --- a/nixos/services/jellyfin.nix +++ b/nixos/services/jellyfin.nix @@ -10,7 +10,7 @@ in { }; }; - config = { + config = lib.mkIf cfg.enable { containers.jellyfin = { autoStart = true; privateNetwork = false; 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; + }; + }) ]; } |
