From 049ab1f01f097468fee3eeb0a7ca84e9ac7510e5 Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Mon, 15 Jan 2024 16:29:44 +0100 Subject: [PATCH] Add armv7l kernel patch --- home-manager/hosts/wheatley/armv7l.nix | 20 ++++++++++++++++++++ nixos/hosts/wheatley/configuration.nix | 1 + 2 files changed, 21 insertions(+) create mode 100644 home-manager/hosts/wheatley/armv7l.nix diff --git a/home-manager/hosts/wheatley/armv7l.nix b/home-manager/hosts/wheatley/armv7l.nix new file mode 100644 index 0000000..e6a9f37 --- /dev/null +++ b/home-manager/hosts/wheatley/armv7l.nix @@ -0,0 +1,20 @@ +{ + config, + pkgs, + ... +}: { + boot.kernelPatches = [ + rec { + name = "compat_uts_machine"; + patch = pkgs.fetchpatch { + inherit name; + url = "https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/jammy/patch/?id=c1da50fa6eddad313360249cadcd4905ac9f82ea"; + sha256 = "sha256-357+EzMLLt7IINdH0ENE+VcDXwXJMo4qiF/Dorp2Eyw="; + }; + } + ]; + boot.kernelParams = [ + "compat_uts_machine=armv7l" + ]; + nix.settings.extra-platforms = "armv7l-linux"; +} diff --git a/nixos/hosts/wheatley/configuration.nix b/nixos/hosts/wheatley/configuration.nix index c63ac2a..3254263 100644 --- a/nixos/hosts/wheatley/configuration.nix +++ b/nixos/hosts/wheatley/configuration.nix @@ -12,6 +12,7 @@ imports = [ inputs.home-manager.nixosModules.home-manager + ./armv7l.nix ./hardware-configuration.nix ../../shared/locale/configuration.nix ];