From 87703ec951cc65ad1a7ad3a5298a51b337f2e3f1 Mon Sep 17 00:00:00 2001 From: Lumpiasty Date: Thu, 7 May 2026 23:50:15 +0200 Subject: [PATCH] linux_6_19 form last nixpkgs rev before removal --- flake.lock | 17 +++++++++++++++++ flake.nix | 1 + hosts/acer.nix | 4 ++-- hosts/gaming-pc.nix | 10 ++++++++-- lib/mkNixosSystem.nix | 2 ++ 5 files changed, 30 insertions(+), 4 deletions(-) diff --git a/flake.lock b/flake.lock index 7fd040e..672bd14 100644 --- a/flake.lock +++ b/flake.lock @@ -328,6 +328,22 @@ "type": "github" } }, + "nixpkgs-linuxeol": { + "locked": { + "lastModified": 1776914381, + "narHash": "sha256-F4YjgKNs1kEIfTsinPDusep2Y+GDFK+3R2AujSZQ18M=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "162f04bf3dd222187388bc990a8678170d594419", + "type": "github" + }, + "original": { + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "162f04bf3dd222187388bc990a8678170d594419", + "type": "github" + } + }, "ntfsplus": { "inputs": { "linux-ntfs": "linux-ntfs", @@ -428,6 +444,7 @@ "nix-sweep": "nix-sweep", "nixos-hardware": "nixos-hardware", "nixpkgs": "nixpkgs", + "nixpkgs-linuxeol": "nixpkgs-linuxeol", "ntfsplus": "ntfsplus", "peerix": "peerix", "plasma-manager": "plasma-manager" diff --git a/flake.nix b/flake.nix index 1489592..7bbc006 100644 --- a/flake.nix +++ b/flake.nix @@ -3,6 +3,7 @@ inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + nixpkgs-linuxeol.url = "github:NixOS/nixpkgs/162f04bf3dd222187388bc990a8678170d594419"; nixos-hardware.url = "github:NixOS/nixos-hardware/master"; home-manager = { url = "github:nix-community/home-manager/master"; diff --git a/hosts/acer.nix b/hosts/acer.nix index 08f370a..bccea9b 100644 --- a/hosts/acer.nix +++ b/hosts/acer.nix @@ -1,4 +1,4 @@ -{ lib, pkgs, ... }: +{ lib, pkgs, nixpkgs-linuxeol, ... }: rec { # Identity @@ -23,7 +23,7 @@ rec { # Kernel # boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; - boot.kernelPackages = pkgs.linuxKernel.packages.linux_6_19; + boot.kernelPackages = nixpkgs-linuxeol.legacyPackages."x86_64-linux".linuxKernel.packages.linux_6_19; boot.zfs.package = pkgs.zfs_unstable; # Swap diff --git a/hosts/gaming-pc.nix b/hosts/gaming-pc.nix index 44db927..c8e57af 100644 --- a/hosts/gaming-pc.nix +++ b/hosts/gaming-pc.nix @@ -1,4 +1,4 @@ -{ lib, pkgs, ... }: +{ lib, pkgs, nixpkgs-linuxeol, ... }: { # Identity @@ -53,7 +53,7 @@ # Kernel # boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; - boot.kernelPackages = pkgs.linuxKernel.packages.linux_6_19; + boot.kernelPackages = nixpkgs-linuxeol.legacyPackages."x86_64-linux".linuxKernel.packages.linux_6_19; # Swap zramSwap = { @@ -129,7 +129,13 @@ }; services.transmission.enable = lib.mkForce false; + # programs.steam.enable = true; + # programs.steam.gamescopeSession.enable = true; + nix.settings.system-features = [ "gccarch-haswell" ]; + + # Local LLaMA.cpp server + networking.firewall.allowedTCPPorts = [ 8080 ]; # nixpkgs.hostPlatform = { # system = "x86_64-linux"; diff --git a/lib/mkNixosSystem.nix b/lib/mkNixosSystem.nix index c3e4cc6..5269077 100644 --- a/lib/mkNixosSystem.nix +++ b/lib/mkNixosSystem.nix @@ -11,6 +11,7 @@ acer-wmi-ext, ntfsplus, nix-skills, + nixpkgs-linuxeol, ... }: hardwareConfig: hostConfig: @@ -21,6 +22,7 @@ nixpkgs.lib.nixosSystem { inherit nix-flatpak; inherit plasma-manager; inherit acer-wmi-ext; + inherit nixpkgs-linuxeol; }; modules = [ {