From dc2786fc4b1d7b864d7286d1cadf3cfc05777f56 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Sat, 10 May 2025 21:08:05 -0500 Subject: [PATCH] Add nixos-hardware repo --- flake.lock | 16 ++++++++++++++++ flake.nix | 1 + hosts/exodus/default.nix | 10 +++++++++- hosts/jude/default.nix | 4 +++- 4 files changed, 29 insertions(+), 2 deletions(-) diff --git a/flake.lock b/flake.lock index 190e280..e2834e9 100644 --- a/flake.lock +++ b/flake.lock @@ -421,6 +421,21 @@ "type": "github" } }, + "nix-hardware": { + "locked": { + "lastModified": 1746814339, + "narHash": "sha256-hf2lICJzwACWuzHCmZn5NI6LUAOgGdR1yh8ip+duyhk=", + "owner": "nixos", + "repo": "nixos-hardware", + "rev": "3c5e12673265dfb0de3d9121420c0c2153bf21e0", + "type": "github" + }, + "original": { + "owner": "nixos", + "repo": "nixos-hardware", + "type": "github" + } + }, "nixlib": { "locked": { "lastModified": 1736643958, @@ -724,6 +739,7 @@ "flake-parts": "flake-parts", "hmunstable": "hmunstable", "hooks": "hooks", + "nix-hardware": "nix-hardware", "nixos-generators": "nixos-generators", "nixunstable": "nixunstable", "nixvimunstable": "nixvimunstable", diff --git a/flake.nix b/flake.nix index 6248a13..33d7313 100644 --- a/flake.nix +++ b/flake.nix @@ -36,6 +36,7 @@ proxmox.url = "github:SaumonNet/proxmox-nixos"; # To enable backups: https://github.com/SaumonNet/proxmox-nixos/pull/45 #proxmox.url = "github:blecher-at/proxmox-nixos/fix-backup-pve-manager"; + nix-hardware.url = "github:nixos/nixos-hardware"; nixos-generators = { url = "github:nix-community/nixos-generators"; inputs.nixpkgs.follows = "nixunstable"; diff --git a/hosts/exodus/default.nix b/hosts/exodus/default.nix index 654d99b..8dfe546 100644 --- a/hosts/exodus/default.nix +++ b/hosts/exodus/default.nix @@ -2,11 +2,15 @@ config, lib, pkgs, + top, ... }: { - imports = [ ./hardware-configuration.nix ]; + imports = [ + ./hardware-configuration.nix + top.nix-hardware.nixosModules.framework-11th-gen-intel + ]; boot = { loader = { @@ -39,6 +43,10 @@ networkmanager.enable = lib.mkForce true; }; + services = { + fwupd.enable = true; + }; + virtualisation = { podman.enable = true; oci-containers.backend = "podman"; diff --git a/hosts/jude/default.nix b/hosts/jude/default.nix index a2a8c5d..5dd8206 100644 --- a/hosts/jude/default.nix +++ b/hosts/jude/default.nix @@ -1,7 +1,8 @@ { + config, lib, pkgs, - config, + top, ... }: @@ -12,6 +13,7 @@ ./podman.nix ./virt.nix ./work.nix + top.nix-hardware.nixosModules.system76 ]; programs = { adb.enable = true;