Add nixos-hardware Surface integration to laptop config

This commit is contained in:
Kiana Sheibani 2022-01-13 21:50:37 -05:00
parent ba3b108bfc
commit a77f26b122
2 changed files with 20 additions and 0 deletions

View file

@ -21,6 +21,21 @@
"type": "github"
}
},
"nixos-hardware": {
"locked": {
"lastModified": 1641965797,
"narHash": "sha256-AfxfIzAZbt9aAzpVBn0Bwhd/M4Wix7G91kEjm9H6FPo=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "87a35a0d58f546dc23f37b4f6af575d0e4be6a7a",
"type": "github"
},
"original": {
"owner": "NixOS",
"repo": "nixos-hardware",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1641710811,
@ -54,6 +69,7 @@
"root": {
"inputs": {
"home-manager": "home-manager",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs",
"nur": "nur"
}

View file

@ -5,12 +5,15 @@ inputs = rec {
nur.url = "github:nix-community/NUR";
nixos-hardware.url = "github:NixOS/nixos-hardware";
home-manager.url = "github:nix-community/home-manager/master";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self,
nixpkgs,
home-manager,
nixos-hardware,
...}@inputs:
let
system = "x86_64-linux";
@ -42,6 +45,7 @@ outputs = { self,
./common/config
./laptop/config
home-manager.nixosModules.home-manager
nixos-hardware.nixosModules.microsoft-surface
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;