From 8043788b3cd01526d47fe87199a6f968df15491b Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Wed, 21 Aug 2024 18:50:21 +0400 Subject: [PATCH] add nixpkgs-stable input and thing --- flake.lock | 36 ++++++++++++++++++------------------ flake.nix | 4 ++-- overlays/default.nix | 9 ++++----- 3 files changed, 24 insertions(+), 25 deletions(-) diff --git a/flake.lock b/flake.lock index de6b1ba2..d9dfdf59 100644 --- a/flake.lock +++ b/flake.lock @@ -364,6 +364,22 @@ } }, "nixpkgs-stable_2": { + "locked": { + "lastModified": 1724098845, + "narHash": "sha256-D5HwjQw/02fuXbR4LCTo64koglP2j99hkDR79/3yLOE=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "f1bad50880bae73ff2d82fafc22010b4fc097a9c", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-24.05", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs-stable_3": { "locked": { "lastModified": 1721524707, "narHash": "sha256-5NctRsoE54N86nWd0psae70YSLfrOek3Kv1e8KoXe/0=", @@ -379,22 +395,6 @@ "type": "github" } }, - "nixpkgs-unstable": { - "locked": { - "lastModified": 1723991338, - "narHash": "sha256-Grh5PF0+gootJfOJFenTTxDTYPidA3V28dqJ/WV7iis=", - "owner": "nixos", - "repo": "nixpkgs", - "rev": "8a3354191c0d7144db9756a74755672387b702ba", - "type": "github" - }, - "original": { - "owner": "nixos", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, "nixpkgs_2": { "locked": { "lastModified": 1723637854, @@ -450,7 +450,7 @@ "home-manager": "home-manager", "hyprland": "hyprland", "nixpkgs": "nixpkgs_3", - "nixpkgs-unstable": "nixpkgs-unstable", + "nixpkgs-stable": "nixpkgs-stable_2", "rose-pine-hyprcursor": "rose-pine-hyprcursor", "sops-nix": "sops-nix" } @@ -480,7 +480,7 @@ "nixpkgs": [ "nixpkgs" ], - "nixpkgs-stable": "nixpkgs-stable_2" + "nixpkgs-stable": "nixpkgs-stable_3" }, "locked": { "lastModified": 1723501126, diff --git a/flake.nix b/flake.nix index 69260bfb..41b6d274 100644 --- a/flake.nix +++ b/flake.nix @@ -3,8 +3,8 @@ description = "Sako's NixOS Configuration"; inputs = { - nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; # nixpkgs stable branch - nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; # nixpkgs unstable branch + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; # nixpkgs unstable branch + nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.05"; # nixpkgs stable branch because some things break home-manager = { # this manages your dotfiles for the most part url = "github:nix-community/home-manager"; diff --git a/overlays/default.nix b/overlays/default.nix index b6b30608..7ec3c673 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -32,11 +32,10 @@ }); }; - # lmao when did i add this - # for a few packages - # access through pkgs.unstable - unstable-packages = final: _prev: { - unstable = import inputs.nixpkgs-unstable { + # incase something breaks + # access through pkgs.stable + stable-packages = final: _prev: { + stable = import inputs.nixpkgs-stable { system = final.system; config.allowUnfree = true; };