From 4eabe70add5dc84c4a98b5aaaad1434803014a7e Mon Sep 17 00:00:00 2001 From: Mark Nipper Date: Sat, 9 Nov 2024 01:48:16 -0800 Subject: Pin kernel to 6.10 @darkstar --- flake.nix | 3 ++- hosts/darkstar/default.nix | 3 ++- overlays/default.nix | 8 ++++++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index e10ca1b..1db146a 100644 --- a/flake.nix +++ b/flake.nix @@ -21,6 +21,7 @@ nixos-hardware.url = "github:nixos/nixos-hardware"; # per https://nixos-and-flakes.thiscute.world/nixos-with-flakes/downgrade-or-upgrade-packages + nixpkgs-67e692392.url = "github:nixos/nixpkgs/67e69239226f37168d1adb8d29bd61150756a03e"; nixpkgs-master.url = "github:nixos/nixpkgs"; nixpkgs-stable.url = "github:nixos/nixpkgs/release-24.05"; nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; @@ -37,7 +38,7 @@ }; - outputs = { home-manager-stable, home-manager, nixos-hardware, nixpkgs-master, nixpkgs-stable, nixpkgs, nvidia-patch, self, sops-nix, ... } @ inputs: let + outputs = { home-manager-stable, home-manager, nixos-hardware, nixpkgs-67e692392, nixpkgs-master, nixpkgs-stable, nixpkgs, nvidia-patch, self, sops-nix, ... } @ inputs: let inherit (self) outputs; systems = [ #"aarch64-linux" diff --git a/hosts/darkstar/default.nix b/hosts/darkstar/default.nix index 26c6c01..d7839c0 100644 --- a/hosts/darkstar/default.nix +++ b/hosts/darkstar/default.nix @@ -4,7 +4,7 @@ kernel.sysctl = { "net.ipv4.ip_forward" = true; }; - kernelPackages = pkgs.linuxPackages_6_10; + kernelPackages = pkgs."67e692392".linuxPackages_6_10; loader = { efi = { canTouchEfiVariables = true; @@ -86,6 +86,7 @@ overlays = [ outputs.overlays.additions outputs.overlays.modifications + outputs.overlays."67e692392-packages" outputs.overlays.master-packages outputs.overlays.stable-packages ]; diff --git a/overlays/default.nix b/overlays/default.nix index 8437fef..aaab968 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -4,6 +4,7 @@ # nixpkgs.overlays = [ # outputs.overlays.additions # outputs.overlays.modifications +# outputs.overlays."67e692392-packages" # outputs.overlays.master-packages # outputs.overlays.stable-packages # ] @@ -21,6 +22,13 @@ # }); }; + "67e692392-packages" = final: _prev: { + "67e692392" = import inputs.nixpkgs-67e692392 { + inherit (final) system; + config.allowUnfree = true; + }; + }; + # When applied, the master nixpkgs set (declared in the flake inputs) will # be accessible through 'pkgs.master' master-packages = final: _prev: { -- cgit v1.2.3