diff --git a/flake.lock b/flake.lock index 4bac0d2..7b5220c 100644 --- a/flake.lock +++ b/flake.lock @@ -451,6 +451,26 @@ "type": "github" } }, + "nixos-hardware": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1781168557, + "narHash": "sha256-LOnLQ2tpYF9gqIDDr3+j3DbpJJr/QCH6zPRT2GzEUOE=", + "owner": "NixOS", + "repo": "nixos-hardware", + "rev": "6358ff76821101c178e3ab4919a62799bfe3652e", + "type": "github" + }, + "original": { + "owner": "NixOS", + "repo": "nixos-hardware", + "type": "github" + } + }, "nixpkgs": { "locked": { "lastModified": 1780749050, @@ -547,6 +567,7 @@ "home-manager": "home-manager", "hyprcursor-phinger": "hyprcursor-phinger", "hyprland": "hyprland", + "nixos-hardware": "nixos-hardware", "nixpkgs": "nixpkgs_2", "nixvim": "nixvim", "zen-browser": "zen-browser" diff --git a/flake.nix b/flake.nix index 5a783cc..16ad2ef 100644 --- a/flake.nix +++ b/flake.nix @@ -16,6 +16,10 @@ hyprland = { url = "github:hyprwm/Hyprland"; }; + nixos-hardware = { + url = "github:NixOS/nixos-hardware"; + inputs.nixpkgs.follows = "nixpkgs"; + }; nixvim = { url = "github:nix-community/nixvim"; }; @@ -31,6 +35,7 @@ home-manager, hyprcursor-phinger, hyprland, + nixos-hardware, nixvim, zen-browser, ... @@ -46,11 +51,14 @@ modules = [ ./systems/flock/configuration.nix ]; specialArgs = { inherit hyprland; }; }; - perch = nixpkgs.lib.nixosSystem { - inherit system; - modules = [ ./systems/perch/configuration.nix ]; - specialArgs = { inherit hyprland; }; - }; + perch = nixpkgs.lib.nixosSystem { + inherit system; + modules = [ + ./systems/perch/configuration.nix + nixos-hardware.nixosModules.framework-16-7040-amd + ]; + specialArgs = { inherit hyprland; }; + }; }; homeConfigurations."igneous" = home-manager.lib.homeManagerConfiguration { inherit pkgs; diff --git a/systems/perch/configuration.nix b/systems/perch/configuration.nix index f1ddff1..c470c74 100644 --- a/systems/perch/configuration.nix +++ b/systems/perch/configuration.nix @@ -5,6 +5,9 @@ ... }: { + # Firmware update service + services.fwupd.enable = true; + imports = [ ./hardware-configuration.nix ];