diff --git a/flake.lock b/flake.lock index 1d94b7d..ba30de3 100644 --- a/flake.lock +++ b/flake.lock @@ -286,6 +286,21 @@ "type": "github" } }, + "nixos-hardware": { + "locked": { + "lastModified": 1699159446, + "narHash": "sha256-cL63IjsbPl2otS7R4kdXbVOJOXYMpGw5KGZoWgdCuCM=", + "owner": "NixOS", + "repo": "nixos-hardware", + "rev": "627bc9b88256379578885a7028c9e791c29fb581", + "type": "github" + }, + "original": { + "owner": "NixOS", + "repo": "nixos-hardware", + "type": "github" + } + }, "nixpkgs": { "locked": { "lastModified": 1699099776, @@ -450,6 +465,7 @@ "if3": "if3", "impermanence": "impermanence", "lanzaboote": "lanzaboote", + "nixos-hardware": "nixos-hardware", "nixpkgs": "nixpkgs", "nixvim": "nixvim", "wiki": "wiki" diff --git a/flake.nix b/flake.nix index ff4f85a..15ce346 100644 --- a/flake.nix +++ b/flake.nix @@ -27,6 +27,10 @@ }; }; + nixos-hardware = { + url = "github:NixOS/nixos-hardware"; + }; + nixvim = { url = "github:nix-community/nixvim"; inputs = { @@ -67,6 +71,7 @@ , home-manager , impermanence , lanzaboote + , nixos-hardware , nixvim , adtyaxyz , wiki @@ -129,6 +134,8 @@ system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev; } + nixos-hardware.nixosModules.raspberry-pi-4 + ./common ./hosts/rico1 ]; @@ -145,6 +152,8 @@ system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev; } + nixos-hardware.nixosModules.raspberry-pi-4 + ./common ./hosts/rico2 ]; diff --git a/hosts/rico2/hardware/default.nix b/hosts/rico2/hardware/default.nix index bb25f2f..6b1535f 100644 --- a/hosts/rico2/hardware/default.nix +++ b/hosts/rico2/hardware/default.nix @@ -1,3 +1,5 @@ { ... }: { imports = [ ./filesystem.nix ./kernel.nix ]; + + hardware.raspberry-pi."4".poe-plus-hat.enable = true; }