70 lines
1.4 KiB
Nix
70 lines
1.4 KiB
Nix
{ nixpkgs, nixos-hardware, ... }:
|
|
{ pkgs, ... }:
|
|
{
|
|
imports = [
|
|
"${nixpkgs}/nixos/modules/installer/sd-card/sd-image-aarch64.nix"
|
|
nixos-hardware.nixosModules.raspberry-pi-4
|
|
|
|
../../users/root
|
|
../../users/erwin
|
|
];
|
|
|
|
eboskma = {
|
|
users.erwin = {
|
|
enable = true;
|
|
server = true;
|
|
};
|
|
base.kernel = pkgs.linuxPackages_rpi4;
|
|
klipper.enable = true;
|
|
networking.enable = true;
|
|
nix-common.enable = true;
|
|
systemd.enable = true;
|
|
};
|
|
|
|
users.users.erwin.initialHashedPassword = "$6$Tm4P3XjXJ/QrNaYW$7VqMt.AdQEtHXKjTWCJ3NVq1BiD.mx57skA3ZZrO7LgYnTM/jJLcD0CjWuED57IeGnKdBqYB1tFI5.J.UIVhR.";
|
|
|
|
hardware = {
|
|
enableAllFirmware = true; # This also sets hardware.enableRedistributableFirmware
|
|
raspberry-pi."4".fkms-3d = {
|
|
enable = true;
|
|
cma = 256;
|
|
};
|
|
};
|
|
|
|
boot = {
|
|
bootspec.enable = true;
|
|
};
|
|
|
|
zramSwap.enable = true;
|
|
|
|
sdImage.compressImage = false;
|
|
|
|
networking = {
|
|
hostName = "regin";
|
|
useDHCP = true;
|
|
useNetworkd = true;
|
|
wireless.enable = true;
|
|
};
|
|
|
|
systemd.network = {
|
|
enable = true;
|
|
|
|
networks = {
|
|
"40-eth0" = {
|
|
DHCP = "yes";
|
|
};
|
|
};
|
|
};
|
|
|
|
services.openssh.enable = true;
|
|
services.tailscale.enable = true;
|
|
|
|
security = {
|
|
polkit.enable = true;
|
|
};
|
|
environment.systemPackages = with pkgs; [
|
|
libraspberrypi
|
|
];
|
|
|
|
system.stateVersion = "23.05";
|
|
}
|