feat: migrate home-server to LattePanda 3 Delta

This commit is contained in:
Felix Schröter 2022-08-03 03:15:06 +02:00
parent 9fbea3db5c
commit 9693e762df
Signed by: felschr
GPG key ID: 671E39E6744C807D
10 changed files with 112 additions and 42 deletions

View file

@ -10,8 +10,8 @@ let
}];
in with builtins; {
imports = [
# ./hardware/base.nix
./hardware/gpu-rpi4.nix
./hardware/base.nix
./hardware/gpu-intel.nix
./system/server.nix
./modules/emailNotify.nix
./services/mail.nix
@ -34,16 +34,6 @@ in with builtins; {
nixpkgs.config.allowUnfree = true;
boot.loader.systemd-boot.enable = true;
boot.loader.generic-extlinux-compatible.enable = false;
# boot.loader.efi.canTouchEfiVariables = true;
boot.tmpOnTmpfs = true;
# rpi4 base config
boot.kernelPackages = pkgs.linuxPackages_rpi4;
boot.kernelParams =
[ "8250.nr_uarts=1" "console=ttyAMA0,115200" "console=tty1" "cma=128" ];
# improve memory performance
zramSwap.enable = true;
zramSwap.algorithm = "zstd";
@ -101,7 +91,7 @@ in with builtins; {
extraConfig = with pkgs; ''
usev6=cmdv6, cmdv6=${
pkgs.writeScript "get-ipv6" ''
${iproute2}/bin/ip --brief addr show eth0 mngtmpaddr \
${iproute2}/bin/ip --brief addr show enp2s0 mngtmpaddr \
| ${gawk}/bin/awk '{print $(NF)}' \
| sed 's/\/.*//'
''