bennu: Add nixos-hardware module

This commit is contained in:
Alexander Heldt
2023-07-20 19:26:40 +02:00
parent 5da9395392
commit 15f8424685
2 changed files with 20 additions and 1 deletions

17
flake.lock generated
View File

@@ -21,6 +21,22 @@
"type": "github"
}
},
"nixos-hardware": {
"locked": {
"lastModified": 1689320556,
"narHash": "sha256-vODUkZLWFVCvo1KPK3dC2CbXjxa9antEn5ozwlcTr48=",
"owner": "nixos",
"repo": "nixos-hardware",
"rev": "d4ea64f2063820120c05f6ba93ee02e6d4671d6b",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "master",
"repo": "nixos-hardware",
"type": "github"
}
},
"nixpkgs2211": {
"locked": {
"lastModified": 1688392541,
@@ -56,6 +72,7 @@
"root": {
"inputs": {
"home-manager": "home-manager",
"nixos-hardware": "nixos-hardware",
"nixpkgs2211": "nixpkgs2211",
"nixpkgs2305": "nixpkgs2305"
}

View File

@@ -4,15 +4,17 @@
inputs = {
nixpkgs2305.url = "github:nixos/nixpkgs/nixos-23.05";
nixpkgs2211.url = "github:nixos/nixpkgs/nixos-22.11";
nixos-hardware.url = "github:nixos/nixos-hardware/master";
home-manager.url = "github:nix-community/home-manager/release-23.05";
home-manager.inputs.nixpkgs.follows = "nixpkgs2305";
};
outputs = { self, nixpkgs2305, nixpkgs2211, home-manager, ... }: {
outputs = { self, nixpkgs2305, nixpkgs2211, nixos-hardware, home-manager, ... }: {
nixosConfigurations = {
bennu = nixpkgs2305.lib.nixosSystem {
system = "x86_64-linux";
modules = [
nixos-hardware.nixosModules.lenovo-thinkpad-x1-10th-gen
./hosts/bennu/configuration.nix
home-manager.nixosModules.home-manager
{