Add nixos-hardware modules to glotzbert

This commit is contained in:
Ehmry - 2021-02-22 14:16:25 +01:00
parent 1088bd7e6a
commit ad42cc9838
2 changed files with 21 additions and 2 deletions

View File

@ -1,5 +1,19 @@
{ {
"nodes": { "nodes": {
"nixos-hardware": {
"locked": {
"lastModified": 1613453906,
"narHash": "sha256-w6oeQ3OTCKxRAG9KtjK+ErxpvUhNr48binO99JVQP9Q=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "115770eed0c0fa50c1277cd0f7fe0f15501dbc43",
"type": "github"
},
"original": {
"id": "nixos-hardware",
"type": "indirect"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1613993207, "lastModified": 1613993207,
@ -18,6 +32,7 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"secrets": "secrets" "secrets": "secrets"
} }

View File

@ -9,7 +9,7 @@
}; };
}; };
outputs = { self, nixpkgs, secrets }: outputs = { self, nixpkgs, secrets, nixos-hardware }:
let let
forAllSystems = f: forAllSystems = f:
nixpkgs.lib.genAttrs [ "aarch64-linux" "x86_64-linux" ] nixpkgs.lib.genAttrs [ "aarch64-linux" "x86_64-linux" ]
@ -67,7 +67,11 @@
in { in {
glotzbert = nixosSystem' { glotzbert = nixosSystem' {
modules = [ ./hosts/glotzbert ]; modules = [
./hosts/glotzbert
nixos-hardware.nixosModules.common-cpu-intel
nixos-hardware.nixosModules.common-pc-ssd
];
system = "x86_64-linux"; system = "x86_64-linux";
}; };