From 2a4f056aaacd3913be79044ab8d59f14a17a35f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Wed, 25 Sep 2024 22:24:46 -0300 Subject: [PATCH] flake: add unstable --- flake.lock | 16 ++++++++++++++++ flake.nix | 7 ++++++- overlays/default.nix | 5 +++++ 3 files changed, 27 insertions(+), 1 deletion(-) diff --git a/flake.lock b/flake.lock index 689e9af..a76aa8d 100644 --- a/flake.lock +++ b/flake.lock @@ -469,6 +469,21 @@ "type": "indirect" } }, + "nixpkgs-unstable": { + "locked": { + "lastModified": 1726937504, + "narHash": "sha256-bvGoiQBvponpZh8ClUcmJ6QnsNKw0EMrCQJARK3bI1c=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "9357f4f23713673f310988025d9dc261c20e70c6", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "ref": "nixos-unstable", + "type": "indirect" + } + }, "plymouth-themes": { "flake": false, "locked": { @@ -512,6 +527,7 @@ "nix-index-database": "nix-index-database", "nixos-mailserver": "nixos-mailserver", "nixpkgs": "nixpkgs", + "nixpkgs-unstable": "nixpkgs-unstable", "plymouth-themes": "plymouth-themes", "ranger-icons": "ranger-icons", "tlauncher": "tlauncher", diff --git a/flake.nix b/flake.nix index 23ece59..ec2011f 100644 --- a/flake.nix +++ b/flake.nix @@ -2,6 +2,8 @@ description = "My system config"; inputs = { nixpkgs.url = "nixpkgs/nixos-24.05"; + nixpkgs-unstable.url = "nixpkgs/nixos-unstable"; + home-manager.url = "github:nix-community/home-manager/release-24.05"; home-manager.inputs.nixpkgs.follows = "nixpkgs"; @@ -157,7 +159,10 @@ }; phantom = lib.nixosSystem { inherit system specialArgs; - modules = [ ./hosts/phantom ]; + modules = [ + { nixpkgs.pkgs = pkgs; } + ./hosts/phantom + ]; }; }; diff --git a/overlays/default.nix b/overlays/default.nix index 2ac2ae1..8886897 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -2,6 +2,7 @@ rec { all = [ scripts + unstable themes new-packages patches @@ -11,6 +12,10 @@ rec { scripts = (import ../scripts); + unstable = final: prev: { + unstable = import inputs.nixpkgs-unstable { inherit (final) system config; }; + }; + themes = ( final: prev: { papirus_red = (final.papirus-icon-theme.override { color = "red"; });