feat: add nixos-hardware input

This commit is contained in:
Alexandre Cavalheiro 2024-01-20 11:26:46 -03:00
parent e122b770ab
commit 3aa13e0451
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF
2 changed files with 27 additions and 1 deletions

View file

@ -138,6 +138,22 @@
"type": "github"
}
},
"hardware": {
"locked": {
"lastModified": 1705312285,
"narHash": "sha256-rd+dY+v61Y8w3u9bukO/hB55Xl4wXv4/yC8rCGVnK5U=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "bee2202bec57e521e3bd8acd526884b9767d7fa0",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "master",
"repo": "nixos-hardware",
"type": "github"
}
},
"headlines-nvim": {
"flake": false,
"locked": {
@ -446,6 +462,7 @@
"root": {
"inputs": {
"custom-neovim": "custom-neovim",
"hardware": "hardware",
"home-manager": "home-manager_2",
"hyprland": "hyprland",
"hyprland-hyprfocus": "hyprland-hyprfocus",

View file

@ -4,6 +4,8 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
hardware.url = "github:NixOS/nixos-hardware/master";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
@ -25,9 +27,10 @@
outputs =
{ self
, nixpkgs
, hardware
, home-manager
, hyprland
, nixpkgs
, ...
}@inputs: {
nixosConfigurations.nixos =
@ -36,6 +39,12 @@
modules = [
./nixos.nix
hardware.nixosModules.common-cpu-amd
hardware.nixosModules.common-gpu-amd
hardware.nixosModules.common-pc
hardware.nixosModules.common-pc-hdd
hardware.nixosModules.common-pc-ssd
hyprland.nixosModules.default
{
programs.hyprland.enable = true;