summaryrefslogtreecommitdiff
path: root/archetypes/profiles/pi/default.nix
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2025-12-20 00:31:29 -0600
committerTim Keller <tjk@tjkeller.xyz>2025-12-20 00:31:29 -0600
commit929d4bdfb90da7d218633fea9f100c3ff11887d6 (patch)
treeb64a4290d8d8b8ee9ebe6d4d9bdf9d671700f802 /archetypes/profiles/pi/default.nix
parent8174b1fd7f341f3d051d1b698faf10cc1865a3cb (diff)
downloadnixos-master.tar.xz
nixos-master.zip
use new pi profile for bootloader settings and set fastfetch logo to raspian logoHEADmaster
Diffstat (limited to 'archetypes/profiles/pi/default.nix')
-rw-r--r--archetypes/profiles/pi/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/archetypes/profiles/pi/default.nix b/archetypes/profiles/pi/default.nix
new file mode 100644
index 0000000..8ea33e4
--- /dev/null
+++ b/archetypes/profiles/pi/default.nix
@@ -0,0 +1,31 @@
+{ 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) ];
+}