diff --git a/systems/default.nix b/systems/default.nix index f074107..e66f129 100644 --- a/systems/default.nix +++ b/systems/default.nix @@ -27,4 +27,5 @@ in ebisu = mkSystem "x86_64-unknown-linux-gnu" "ebisu"; hetzner = mkSystem "x86_64-unknown-linux-gnu" "hetzner"; zap = mkSystem "x86_64-unknown-linux-gnu" "zap"; + pi4 = mkSystem "aarch64-unknown-linux-gnu" "pi4"; } diff --git a/systems/pi4/default.nix b/systems/pi4/default.nix new file mode 100644 index 0000000..7693220 --- /dev/null +++ b/systems/pi4/default.nix @@ -0,0 +1,34 @@ +{ modulesPath, lib, nixos-hardware, ... }: + +{ + imports = [ + (modulesPath + "/installer/scan/not-detected.nix") + nixos-hardware.nixosModules.raspberry-pi-4 + ]; + + boot = { + initrd = { availableKernelModules = [ "xhci_pci" ]; }; + loader = { generic-extlinux-compatible.enable = true; }; + }; + + hardware.raspberry-pi."4".fkms-3d.enable = true; + + jopejoe1 = { + bluetooth.enable = true; + local.enable = true; + nix.enable = true; + user = { + jopejoe1.enable = true; + root.enable = true; + }; + ssh.enable = true; + }; + + services.openssh.settings.PermitRootLogin = lib.mkForce "yes"; + + networking = { + useDHCP = lib.mkDefault true; + }; + + powerManagement.cpuFreqGovernor = "ondemand"; +}