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" "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": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1641710811, "lastModified": 1641710811,
@ -54,6 +69,7 @@
"root": { "root": {
"inputs": { "inputs": {
"home-manager": "home-manager", "home-manager": "home-manager",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nur": "nur" "nur": "nur"
} }

View file

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