diff options
author | Linnnus <[email protected]> | 2023-10-27 20:13:46 +0200 |
---|---|---|
committer | Linnnus <[email protected]> | 2023-10-27 20:13:46 +0200 |
commit | 4a1d540524e90849d719d642926a3ace482f8be0 (patch) | |
tree | 0610a531ae4a2146341f7760085843edfe68142c | |
parent | 3dc6994f304e62d727e43163622132560d00b551 (diff) |
Add unstable nixpkgs
-rw-r--r-- | flake.lock | 16 | ||||
-rw-r--r-- | flake.nix | 3 | ||||
-rw-r--r-- | hosts/common.nix | 10 |
3 files changed, 28 insertions, 1 deletions
@@ -140,6 +140,21 @@ "type": "github" } }, + "nixpkgs-unstable": { + "locked": { + "lastModified": 1698134075, + "narHash": "sha256-foCD+nuKzfh49bIoiCBur4+Fx1nozo+4C/6k8BYk4sg=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "8efd5d1e283604f75a808a20e6cde0ef313d07d4", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "ref": "nixos-unstable", + "type": "indirect" + } + }, "push-notification-api": { "inputs": { "flake-utils": "flake-utils", @@ -167,6 +182,7 @@ "home-manager": "home-manager_2", "nix-darwin": "nix-darwin", "nixpkgs": "nixpkgs", + "nixpkgs-unstable": "nixpkgs-unstable", "push-notification-api": "push-notification-api" } }, @@ -3,6 +3,9 @@ nixpkgs = { url = "github:NixOS/nixpkgs/nixos-23.05"; }; + nixpkgs-unstable = { + url = "nixpkgs/nixos-unstable"; + }; home-manager = { url = "github:nix-community/home-manager/release-23.05"; inputs.nixpkgs.follows = "nixpkgs"; diff --git a/hosts/common.nix b/hosts/common.nix index aa34086..2378352 100644 --- a/hosts/common.nix +++ b/hosts/common.nix @@ -9,11 +9,19 @@ # Enable de facto stable features. nix.settings.experimental-features = ["nix-command" "flakes"]; + nixpkgs.overlays = [ + # Use local overlays. + flakeOutputs.overlays.additions + flakeOutputs.overlays.modifications + + # Add unstable nixpkgs. + (final: prev: {unstable = flakeInputs.unstable-nixpkgs.legacyPackages.${pkgs.system};}) + ]; + # Use overlays from this repo for building system configuration as well as # system-wide. # # See: https://nixos.wiki/wiki/Overlays#Using_nixpkgs.overlays_from_configuration.nix_as_.3Cnixpkgs-overlays.3E_in_your_NIX_PATH - nixpkgs.overlays = [flakeOutputs.overlays.additions flakeOutputs.overlays.modifications]; nix.nixPath = options.nix.nixPath.default ++ ["nixpkgs-overlays=${flakeInputs.self}/overlays/compat.nix"]; # Set ZSH as the shell. |