diff --git a/flake.lock b/flake.lock index 9d26b20..8bfaaf6 100644 --- a/flake.lock +++ b/flake.lock @@ -61,6 +61,22 @@ "type": "github" } }, + "nixos-hardware": { + "locked": { + "lastModified": 1716173274, + "narHash": "sha256-FC21Bn4m6ctajMjiUof30awPBH/7WjD0M5yqrWepZbY=", + "owner": "NixOS", + "repo": "nixos-hardware", + "rev": "d9e0b26202fd500cf3e79f73653cce7f7d541191", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "d9e0b26202fd500cf3e79f73653cce7f7d541191", + "repo": "nixos-hardware", + "type": "github" + } + }, "nixpkgs": { "locked": { "lastModified": 1718089647, @@ -113,6 +129,7 @@ "flake-utils": "flake-utils", "home-manager": "home-manager", "minegrub-theme": "minegrub-theme", + "nixos-hardware": "nixos-hardware", "nixpkgs": "nixpkgs", "sops-nix": "sops-nix" } diff --git a/flake.nix b/flake.nix index fc3d338..86a68e3 100644 --- a/flake.nix +++ b/flake.nix @@ -4,6 +4,7 @@ inputs = { nixpkgs.url = "nixpkgs/f7207adcc68d9cafa29e3cd252a18743ae512c6a"; flake-utils.url = "github:numtide/flake-utils?ref=b1d9ab70662946ef0850d488da1c9019f3a9752a"; + nixos-hardware.url = "github:NixOS/nixos-hardware?ref=d9e0b26202fd500cf3e79f73653cce7f7d541191"; home-manager = { url = "github:nix-community/home-manager?ref=892f76bd0aa09a0f7f73eb41834b8a904b6d0fad"; @@ -18,7 +19,7 @@ }; }; - outputs = { self, nixpkgs, flake-utils, home-manager, sops-nix, minegrub-theme }: ( + outputs = { self, nixpkgs, flake-utils, nixos-hardware, home-manager, sops-nix, minegrub-theme }: ( let inherit (nixpkgs) lib; @@ -55,6 +56,9 @@ nixos.config = { ... }: { }; manu-surface.config = { ... }: { + modules = [ + nixos-hardware.nixosModules.microsoft-surface-pro-intel + ]; }; };