{ lib, pkgs, ... }: let mkPi = lib.mkOverride 900; nixosConfig = { # Use the extlinux boot loader. (NixOS wants to enable GRUB by default) boot.loader.grub.enable = false; # Enables the generation of /boot/extlinux/extlinux.conf boot.loader.generic-extlinux-compatible.enable = true; }; homeConfig = { # Use raspian logo in fastfetch programs.fastfetch = { enable = mkPi true; settings = { logo.source = mkPi "raspbian"; # Default options for the rest of this # TODO figure out how to just override logo and keep defaults w/config file modules = [ "title" "separator" "os" "host" "kernel" "uptime" "packages" "shell" "display" "de" "wm" "wmtheme" "theme" "icons" "font" "cursor" "terminal" "terminalfont" "cpu" "gpu" "memory" "swap" "disk" "localip" "battery" "poweradapter" "locale" "break" "colors" ]; }; }; }; in { imports = [ (lib._mkProfileArchetype "pi" nixosConfig homeConfig) ]; }