From 09a45e685b7b20974728b1109c9c776a239e5042 Mon Sep 17 00:00:00 2001 From: Jacob Hrbek Date: Wed, 4 Oct 2023 23:30:04 +0200 Subject: [PATCH] OLIMEX Teres-I: Init Initial declaration of the device --- flake.nix | 1 + olimex/teres_i/default.nix | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 olimex/teres_i/default.nix diff --git a/flake.nix b/flake.nix index 36394274d..6e19e8b0a 100644 --- a/flake.nix +++ b/flake.nix @@ -168,6 +168,7 @@ omen-15-en0010ca = import ./omen/15-en0010ca; omen-en00015p = import ./omen/en00015p; onenetbook-4 = import ./onenetbook/4; + olimex-teres_i = import ./olimex/teres_i; pcengines-apu = import ./pcengines/apu; pine64-pinebook-pro = import ./pine64/pinebook-pro; pine64-star64 = import ./pine64/star64; diff --git a/olimex/teres_i/default.nix b/olimex/teres_i/default.nix new file mode 100644 index 000000000..34bec53c0 --- /dev/null +++ b/olimex/teres_i/default.nix @@ -0,0 +1,30 @@ +{ config, lib, pkgs, ...}: + +{ + hardware.deviceTree = { + name = lib.mkDefault "allwinner/sun50i-a64-teres-i.dts"; + enable = lib.mkDefault true; + }; + + boot = { + consoleLogLevel = lib.mkDefault 7; + + kernelPackages = lib.mkDefault pkgs.linuxPackages_latest; + kernelParams = lib.mkDefault ["console=ttyS0,115200n8"]; + extraModulePackages = lib.mkDefault []; + + initrd = { + availableKernelModules = lib.mkDefault ["usbhid"]; + kernelModules = lib.mkDefault []; + }; + + loader = { + grub.enable = lib.mkDefault false; + generic-extlinux-compatible.enable = lib.mkDefault true; + }; + }; + + nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux"; + + powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand"; +}