diff --git a/flake.lock b/flake.lock index 88e3f36c..55324910 100644 --- a/flake.lock +++ b/flake.lock @@ -1107,6 +1107,22 @@ "type": "github" } }, + "nixpkgs-unstable": { + "locked": { + "lastModified": 1709943332, + "narHash": "sha256-MCdZ9lXvCSTg23WUo9+uK9Zcw+VykCiYqF6x8Vy1Dyo=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "b046a81451dc41d818e8f22736e7d5e8d7d67699", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable-small", + "repo": "nixpkgs", + "type": "github" + } + }, "nixpkgs-wayland": { "inputs": { "flake-compat": "flake-compat_2", @@ -1358,6 +1374,7 @@ "hyprland": "hyprland", "impermanence": "impermanence", "nixpkgs": "nixpkgs_5", + "nixpkgs-unstable": "nixpkgs-unstable", "nixpkgs-wayland": "nixpkgs-wayland", "nur": "nur", "pre-commit-hooks": "pre-commit-hooks_2", diff --git a/flake.nix b/flake.nix index 5e5eb2fc..2bba9c71 100644 --- a/flake.nix +++ b/flake.nix @@ -9,9 +9,13 @@ inherit system; config.allowUnfree = lib.mkDefault true; }; + pkgs-unstable = (import nixpkgs-unstable) { + inherit system; + config.allowUnfree = lib.mkDefault true; + }; inherit (nixpkgs) lib; inherit (import ./shared/vars) user; - specialArgs = { inherit inputs pkgs system user; }; + specialArgs = { inherit inputs pkgs pkgs-unstable system user; }; extraModules = [ sops-nix.nixosModules.sops ]; @@ -113,6 +117,7 @@ { # public source nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable-small"; home-manager = { url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; diff --git a/profiles/daily-drivers/nuc-12/hardware-configuration.nix b/profiles/daily-drivers/nuc-12/hardware-configuration.nix index 77f561ed..fa8922df 100644 --- a/profiles/daily-drivers/nuc-12/hardware-configuration.nix +++ b/profiles/daily-drivers/nuc-12/hardware-configuration.nix @@ -1,7 +1,7 @@ # Do not modify this file! It was generated by ‘nixos-generate-config’ # and may be overwritten by future invocations. Please make changes # to /etc/nixos/configuration.nix instead. -{ config, lib, pkgs, modulesPath, ... }: +{ config, lib, pkgs, pkgs-unstable, modulesPath, ... }: { imports = @@ -11,7 +11,7 @@ boot = { # Use the systemd-boot EFI boot loader. - kernelPackages = pkgs.linuxPackages_testing; + kernelPackages = pkgs-unstable.linuxPackages_testing; # kernelPackages = pkgs.linuxPackages_latest; supportedFilesystems = [ "ext4" "btrfs" "xfs" "fat" "vfat" "cifs" "nfs" ]; diff --git a/profiles/daily-drivers/thinkpad-x1-carbon/hardware-configuration.nix b/profiles/daily-drivers/thinkpad-x1-carbon/hardware-configuration.nix index cad0e3bf..195bda37 100644 --- a/profiles/daily-drivers/thinkpad-x1-carbon/hardware-configuration.nix +++ b/profiles/daily-drivers/thinkpad-x1-carbon/hardware-configuration.nix @@ -6,7 +6,7 @@ # https://wiki.archlinux.org/title/Lenovo_ThinkPad_X1_Carbon_(Gen_11) # https://wiki.archlinux.org/title/Lenovo_ThinkPad_X1_Carbon_(Gen_10) # https://wiki.archlinux.org/title/Lenovo_ThinkPad_X1_Carbon_(Gen_9) -{ config, lib, pkgs, modulesPath, ... }: +{ config, lib, pkgs, pkgs-unstable, modulesPath, ... }: { imports = @@ -16,7 +16,7 @@ boot = { # Use the systemd-boot EFI boot loader. - kernelPackages = pkgs.linuxPackages_testing; + kernelPackages = pkgs-unstable.linuxPackages_testing; # kernelPackages = pkgs.linuxPackages_latest; supportedFilesystems = [ "ext4" "btrfs" "xfs" "fat" "vfat" "cifs" "nfs" ];