2023-04-10 23:25:25 +02:00
|
|
|
{ nixpkgs, ... }:
|
|
|
|
{ pkgs, ... }:
|
2023-02-28 13:31:47 +01:00
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
"${nixpkgs}/nixos/modules/installer/sd-card/sd-image-aarch64.nix"
|
|
|
|
|
|
|
|
../../users/root
|
|
|
|
../../users/erwin
|
|
|
|
];
|
|
|
|
|
|
|
|
eboskma = {
|
2023-04-10 23:25:25 +02:00
|
|
|
users.erwin = {
|
|
|
|
enable = true;
|
|
|
|
server = true;
|
|
|
|
};
|
|
|
|
base.kernel = pkgs.linuxPackages_rpi3;
|
|
|
|
klipper.enable = true;
|
2023-02-28 13:31:47 +01:00
|
|
|
networking.enable = true;
|
|
|
|
nix-common.enable = true;
|
|
|
|
systemd.enable = true;
|
|
|
|
};
|
|
|
|
|
2023-04-10 23:25:25 +02:00
|
|
|
users.users.erwin.initialHashedPassword = "$6$Tm4P3XjXJ/QrNaYW$7VqMt.AdQEtHXKjTWCJ3NVq1BiD.mx57skA3ZZrO7LgYnTM/jJLcD0CjWuED57IeGnKdBqYB1tFI5.J.UIVhR.";
|
|
|
|
|
2023-02-28 13:31:47 +01:00
|
|
|
hardware = {
|
2023-04-10 23:25:25 +02:00
|
|
|
enableAllFirmware = true; # This also sets hardware.enableRedistributableFirmware
|
|
|
|
};
|
|
|
|
|
|
|
|
boot = {
|
|
|
|
initrd.availableKernelModules = [
|
|
|
|
"usbhid"
|
|
|
|
"usb_storage"
|
|
|
|
"vc4"
|
|
|
|
];
|
|
|
|
kernelModules = [ "bcm2835-v4l2" ];
|
2023-02-28 13:31:47 +01:00
|
|
|
};
|
|
|
|
|
2023-04-10 23:25:25 +02:00
|
|
|
zramSwap.enable = true;
|
|
|
|
|
|
|
|
sdImage.compressImage = false;
|
|
|
|
|
2023-02-28 13:31:47 +01:00
|
|
|
networking = {
|
|
|
|
hostName = "regin";
|
2023-04-10 23:25:25 +02:00
|
|
|
useDHCP = true;
|
2023-02-28 13:31:47 +01:00
|
|
|
useNetworkd = true;
|
2023-04-10 23:25:25 +02:00
|
|
|
wireless.enable = true;
|
2023-02-28 13:31:47 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
systemd.network = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
networks = {
|
|
|
|
"40-eth0" = {
|
|
|
|
DHCP = "yes";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services.openssh.enable = true;
|
|
|
|
|
|
|
|
security = {
|
|
|
|
polkit.enable = true;
|
|
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
2023-04-10 23:25:25 +02:00
|
|
|
libraspberrypi
|
2023-02-28 13:31:47 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
system.stateVersion = "23.05";
|
|
|
|
}
|