use nixos-hardware from flake inputs

This commit is contained in:
Trolli Schmittlauch 2023-04-13 20:34:56 +02:00
parent 62364a9db5
commit 339938b213
2 changed files with 3 additions and 7 deletions

View file

@ -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: {

View file

@ -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" ];