system: add hardware for cpu and gpu

This commit is contained in:
Dmitriy Pleshevskiy 2022-09-26 03:48:38 +03:00
parent a54b9ffdac
commit 3119953dcb
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215
3 changed files with 20 additions and 0 deletions

View file

@ -141,6 +141,22 @@
"type": "github" "type": "github"
} }
}, },
"hardware": {
"locked": {
"lastModified": 1663229557,
"narHash": "sha256-1uU4nsDLXKG0AHc/VCsNBAEPkTA/07juYhcEWRb1O1E=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "a0df6cd6e199df4a78c833c273781ea92fa62cfb",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "master",
"repo": "nixos-hardware",
"type": "github"
}
},
"home-manager": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -450,6 +466,7 @@
"root": { "root": {
"inputs": { "inputs": {
"dedsec-grub-theme": "dedsec-grub-theme", "dedsec-grub-theme": "dedsec-grub-theme",
"hardware": "hardware",
"home-manager": "home-manager", "home-manager": "home-manager",
"myneovim": "myneovim", "myneovim": "myneovim",
"nil": "nil", "nil": "nil",

View file

@ -2,6 +2,8 @@
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
hardware.url = "github:NixOS/nixos-hardware/master";
home-manager = { home-manager = {
url = "github:nix-community/home-manager"; url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";

View file

@ -13,6 +13,7 @@ with inputs;
system-asus-gl553vd = nixpkgs.lib.nixosSystem { system-asus-gl553vd = nixpkgs.lib.nixosSystem {
inherit system; inherit system;
modules = [ modules = [
hardware.nixosModules.common-cpu-intel
../system/configuration.nix ../system/configuration.nix
../system/machine/asus_gl553vd ../system/machine/asus_gl553vd
]; ];