From 99bea024e87981f81f0bfacc786307ebae2d0e43 Mon Sep 17 00:00:00 2001 From: MichaelFisher1997 Date: Sat, 10 May 2025 19:38:58 +0100 Subject: [PATCH] moved to stable --- flake.lock | 8 ++++---- flake.nix | 2 +- hosts/hypr-nix/configuration.nix | 6 ++++++ hosts/hypr-nix/packages.nix | 5 +++++ 4 files changed, 16 insertions(+), 5 deletions(-) diff --git a/flake.lock b/flake.lock index 3ed609e..1bd20b2 100644 --- a/flake.lock +++ b/flake.lock @@ -2,16 +2,16 @@ "nodes": { "nixpkgs": { "locked": { - "lastModified": 1746663147, - "narHash": "sha256-Ua0drDHawlzNqJnclTJGf87dBmaO/tn7iZ+TCkTRpRc=", + "lastModified": 1746557022, + "narHash": "sha256-QkNoyEf6TbaTW5UZYX0OkwIJ/ZMeKSSoOMnSDPQuol0=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "dda3dcd3fe03e991015e9a74b22d35950f264a54", + "rev": "1d3aeb5a193b9ff13f63f4d9cc169fb88129f860", "type": "github" }, "original": { "owner": "NixOS", - "ref": "nixos-unstable", + "ref": "nixos-24.11", "repo": "nixpkgs", "type": "github" } diff --git a/flake.nix b/flake.nix index 813f9bf..0bb3dff 100644 --- a/flake.nix +++ b/flake.nix @@ -2,7 +2,7 @@ description = "NixOS configuration for hypr-nix"; inputs = { - nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11"; }; outputs = { self, nixpkgs, ... }@inputs: { diff --git a/hosts/hypr-nix/configuration.nix b/hosts/hypr-nix/configuration.nix index 9862a3e..ff8ca96 100644 --- a/hosts/hypr-nix/configuration.nix +++ b/hosts/hypr-nix/configuration.nix @@ -25,6 +25,12 @@ boot.loader.grub.useOSProber = true; boot.initrd.kernelModules = [ "amdgpu" ]; boot.kernelPackages = pkgs.linuxPackages_latest; + nix.package = pkgs.nixVersions.latest; + + # Optional but recommended: + nix.extraOptions = '' + experimental-features = nix-command flakes + ''; boot.kernelParams = [ "cgroup_enable=cpuset,cpu,cpuacct,blkio,devices,freezer,net_cls,perf_event,net_prio,hugetlb,pids" ]; diff --git a/hosts/hypr-nix/packages.nix b/hosts/hypr-nix/packages.nix index f867b3a..8f4426b 100644 --- a/hosts/hypr-nix/packages.nix +++ b/hosts/hypr-nix/packages.nix @@ -1,4 +1,9 @@ { config, pkgs, ... }: +let + unstable = import + (builtins.fetchTarball "channel:nixos-unstable") + { config = config.nixpkgs.config; }; +in { environment.systemPackages = with pkgs; [ # Text Editors