From 339938b21365ae100221b3b345fbb2b90c2da07b Mon Sep 17 00:00:00 2001 From: Trolli Schmittlauch Date: Thu, 13 Apr 2023 20:34:56 +0200 Subject: [PATCH] use nixos-hardware from flake inputs --- flake.nix | 1 + nixos/hardware-configuration.nix | 9 ++------- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/flake.nix b/flake.nix index 55a7961..f60b817 100644 --- a/flake.nix +++ b/flake.nix @@ -4,6 +4,7 @@ inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11"; nixos-unstable.url = "github:NixOS/nixpkgs/nixos-unstable"; + nixos-hardware.url = "github:NixOS/nixos-hardware/master"; }; outputs = { self, nixpkgs, ... }@inputs: { diff --git a/nixos/hardware-configuration.nix b/nixos/hardware-configuration.nix index a08e812..4c1b5c1 100644 --- a/nixos/hardware-configuration.nix +++ b/nixos/hardware-configuration.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, modulesPath, ... }: +{ config, lib, pkgs, modulesPath, inputs, ... }: let @@ -8,12 +8,7 @@ in imports = [ (modulesPath + "/installer/scan/not-detected.nix") - ( - builtins.fetchGit { - url = "https://github.com/NixOS/nixos-hardware"; - rev = "a4bc66709604ab78abc575b60baa6d23ae027a59"; - } + "/lenovo/thinkpad/t440s" - ) + (inputs.nixos-hardware + "/lenovo/thinkpad/t440s") ]; boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];