mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-04 10:16:33 +01:00
add a pi4 image
This commit is contained in:
parent
210d1ab3e3
commit
910115e533
2 changed files with 35 additions and 0 deletions
|
@ -27,4 +27,5 @@ in
|
||||||
ebisu = mkSystem "x86_64-unknown-linux-gnu" "ebisu";
|
ebisu = mkSystem "x86_64-unknown-linux-gnu" "ebisu";
|
||||||
hetzner = mkSystem "x86_64-unknown-linux-gnu" "hetzner";
|
hetzner = mkSystem "x86_64-unknown-linux-gnu" "hetzner";
|
||||||
zap = mkSystem "x86_64-unknown-linux-gnu" "zap";
|
zap = mkSystem "x86_64-unknown-linux-gnu" "zap";
|
||||||
|
pi4 = mkSystem "aarch64-unknown-linux-gnu" "pi4";
|
||||||
}
|
}
|
||||||
|
|
34
systems/pi4/default.nix
Normal file
34
systems/pi4/default.nix
Normal file
|
@ -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";
|
||||||
|
}
|
Loading…
Reference in a new issue