Skip to content

Commit

Permalink
OLIMEX Teres-I: Init
Browse files Browse the repository at this point in the history
Initial declaration of the device
  • Loading branch information
Jacob Hrbek authored and mergify[bot] committed Oct 6, 2023
1 parent f4ef5df commit 93fcc5f
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@
omen-15-en1007sa = import ./omen/15-en1007sa;
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-rockpro64 = import ./pine64/rockpro64;
Expand Down
30 changes: 30 additions & 0 deletions olimex/teres_i/default.nix
Original file line number Diff line number Diff line change
@@ -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";
}

0 comments on commit 93fcc5f

Please sign in to comment.