From 3e8b76b643f1152ae753672aa866ca038701e85c Mon Sep 17 00:00:00 2001 From: Yureka Date: Sun, 24 Oct 2021 22:56:43 +0200 Subject: [PATCH] simplify bemmer config some more --- common/default.nix | 2 +- hosts/bemmer/configuration.nix | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/common/default.nix b/common/default.nix index 3276807..3d3cd5d 100644 --- a/common/default.nix +++ b/common/default.nix @@ -1,7 +1,7 @@ { lib, pkgs, ... }: { - boot.kernelPackages = lib.mkDefault pkgs.linuxPackages_latest; + boot.kernelPackages = lib.mkOverride 2000 pkgs.linuxPackages_latest; boot.kernelParams = [ "quiet" ]; services.openssh.enable = true; diff --git a/hosts/bemmer/configuration.nix b/hosts/bemmer/configuration.nix index f0548de..ebe53b2 100644 --- a/hosts/bemmer/configuration.nix +++ b/hosts/bemmer/configuration.nix @@ -17,8 +17,11 @@ ../../shared-services/webserver.nix ]; + # We import sd-image-aarch64.nix so we can build a config.system.build.sdImage + # But it imports some modules we don't want, so disable them disabledModules = [ "profiles/base.nix" + "profiles/all-hardware.nix" ]; networking.hostName = "bemmer"; @@ -26,8 +29,6 @@ networking.useDHCP = true; nixpkgs.system = "aarch64-linux"; - boot.initrd.availableKernelModules = lib.mkForce [ "vc4" "i2c_bcm2835" ]; - boot.kernelPackages = pkgs.linuxPackages_rpi4; hardware.raspberry-pi."4".fkms-3d.enable = true; system.stateVersion = "21.05";