flake.nix: add nixos-hardware
hosts/dunamis/hardware.nix: add nixos-hardware Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
@ -16,8 +16,9 @@
|
|||||||
nix-flatpak.url = "github:gmodena/nix-flatpak";
|
nix-flatpak.url = "github:gmodena/nix-flatpak";
|
||||||
nix-index-database.url = "github:nix-community/nix-index-database";
|
nix-index-database.url = "github:nix-community/nix-index-database";
|
||||||
# nixos-cosmic.url = "github:lilyinstarlight/nixos-cosmic";
|
# nixos-cosmic.url = "github:lilyinstarlight/nixos-cosmic";
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
|
|
||||||
# nixvim.url = "github:nix-community/nixvim";
|
# nixvim.url = "github:nix-community/nixvim";
|
||||||
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
||||||
|
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
|
||||||
sops-nix.url = "github:mic92/sops-nix";
|
sops-nix.url = "github:mic92/sops-nix";
|
||||||
stylix.url = "github:danth/stylix";
|
stylix.url = "github:danth/stylix";
|
||||||
way-edges.url = "github:way-edges/way-edges";
|
way-edges.url = "github:way-edges/way-edges";
|
||||||
|
@ -1,23 +1,19 @@
|
|||||||
{
|
{
|
||||||
config,
|
inputs,
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
modulesPath,
|
modulesPath,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = with inputs.nixos-hardware.nixosModules; [
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
common-amd-cpu-pstate
|
||||||
|
common-intel-gpu
|
||||||
|
common-pc-ssd
|
||||||
];
|
];
|
||||||
|
hardware = {
|
||||||
hardware.graphics = {
|
enableRedistributableFirmware = true;
|
||||||
enable = true;
|
intelgpu = {
|
||||||
extraPackages = with pkgs; [
|
vaapiDriver = "intel-media-driver";
|
||||||
intel-media-driver
|
useIntelMediaDriver = true;
|
||||||
vaapiIntel
|
};
|
||||||
vpl-gpu-rt
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
||||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user