mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-01 17:06:33 +01:00
raspberry
This commit is contained in:
parent
c96a903819
commit
44984fcdb2
3 changed files with 39 additions and 0 deletions
|
@ -40,4 +40,6 @@
|
|||
environment.systemPackages = with pkgs; [ mixxx ];
|
||||
|
||||
time.timeZone = "Europe/Berlin";
|
||||
|
||||
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
||||
}
|
||||
|
|
|
@ -28,4 +28,5 @@ in
|
|||
hetzner = mkSystem "x86_64-unknown-linux-gnu" "hetzner";
|
||||
zap = mkSystem "x86_64-unknown-linux-gnu" "zap";
|
||||
pi4 = mkSystem "aarch64-unknown-linux-gnu" "pi4";
|
||||
raspberry4 = mkSystem "aarch64-unknown-linux-gnu" "raspberry4";
|
||||
}
|
||||
|
|
36
systems/raspberry4/default.nix
Normal file
36
systems/raspberry4/default.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{ modulesPath, lib, nixos-hardware, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
nixos-hardware.nixosModules.raspberry-pi-4
|
||||
];
|
||||
|
||||
boot = {
|
||||
initrd = { availableKernelModules = [ "xhci_pci" ]; };
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
};
|
||||
|
||||
boot.supportedFilesystems = lib.mkForce [ "btrfs" "cifs" "f2fs" "jfs" "ntfs" "reiserfs" "vfat" "xfs" "bchachefs" ];
|
||||
|
||||
#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;
|
||||
};
|
||||
|
||||
networking = {
|
||||
useDHCP = lib.mkDefault true;
|
||||
};
|
||||
|
||||
services.openssh.settings.PermitRootLogin = lib.mkForce "yes";
|
||||
|
||||
powerManagement.cpuFreqGovernor = "ondemand";
|
||||
}
|
Loading…
Reference in a new issue