diff --git a/flake.lock b/flake.lock index cfd36cf..f247f56 100644 --- a/flake.lock +++ b/flake.lock @@ -138,6 +138,22 @@ "type": "github" } }, + "hardware": { + "locked": { + "lastModified": 1705312285, + "narHash": "sha256-rd+dY+v61Y8w3u9bukO/hB55Xl4wXv4/yC8rCGVnK5U=", + "owner": "NixOS", + "repo": "nixos-hardware", + "rev": "bee2202bec57e521e3bd8acd526884b9767d7fa0", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "master", + "repo": "nixos-hardware", + "type": "github" + } + }, "headlines-nvim": { "flake": false, "locked": { @@ -446,6 +462,7 @@ "root": { "inputs": { "custom-neovim": "custom-neovim", + "hardware": "hardware", "home-manager": "home-manager_2", "hyprland": "hyprland", "hyprland-hyprfocus": "hyprland-hyprfocus", diff --git a/flake.nix b/flake.nix index 681353a..14780a8 100644 --- a/flake.nix +++ b/flake.nix @@ -4,6 +4,8 @@ inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + hardware.url = "github:NixOS/nixos-hardware/master"; + home-manager = { url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; @@ -25,9 +27,10 @@ outputs = { self - , nixpkgs + , hardware , home-manager , hyprland + , nixpkgs , ... }@inputs: { nixosConfigurations.nixos = @@ -36,6 +39,12 @@ modules = [ ./nixos.nix + hardware.nixosModules.common-cpu-amd + hardware.nixosModules.common-gpu-amd + hardware.nixosModules.common-pc + hardware.nixosModules.common-pc-hdd + hardware.nixosModules.common-pc-ssd + hyprland.nixosModules.default { programs.hyprland.enable = true;