2023-05-07 17:00:43 +02:00
|
|
|
{ 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
|
|
|
|
|
|
|
|
./home.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
eboskma = {
|
|
|
|
users.erwin = {
|
|
|
|
enable = true;
|
|
|
|
};
|
2023-05-15 14:29:56 +02:00
|
|
|
base = {
|
|
|
|
kernel = pkgs.linuxKernel.packages.linux_rpi4;
|
|
|
|
plymouth.enable = true;
|
|
|
|
};
|
|
|
|
desktop = {
|
|
|
|
enable = true;
|
|
|
|
wayland = true;
|
|
|
|
};
|
|
|
|
fonts.enable = true;
|
|
|
|
gnome.enable = true;
|
|
|
|
greetd = {
|
|
|
|
enable = true;
|
|
|
|
sway = true;
|
|
|
|
};
|
2023-05-07 17:00:43 +02:00
|
|
|
networking.enable = true;
|
2023-05-15 14:29:56 +02:00
|
|
|
nix-common = {
|
|
|
|
enable = true;
|
|
|
|
remote-builders = true;
|
|
|
|
};
|
2023-05-07 17:00:43 +02:00
|
|
|
systemd.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
hardware = {
|
|
|
|
enableAllFirmware = true;
|
2023-05-15 14:29:56 +02:00
|
|
|
raspberry-pi."4".fkms-3d = {
|
|
|
|
enable = true;
|
|
|
|
cma = 256;
|
|
|
|
};
|
2023-05-07 17:00:43 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
boot = {
|
|
|
|
bootspec.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
zramSwap.enable = true;
|
2023-05-15 14:29:56 +02:00
|
|
|
sdImage.compressImage = false;
|
2023-05-07 17:00:43 +02:00
|
|
|
|
|
|
|
networking = {
|
|
|
|
hostName = "thor";
|
|
|
|
useDHCP = true;
|
|
|
|
useNetworkd = true;
|
|
|
|
wireless.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
systemd.network = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
networks = {
|
|
|
|
"40-eth0" = {
|
|
|
|
DHCP = "yes";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services.openssh.enable = true;
|
2023-05-23 17:12:31 +02:00
|
|
|
services.tailscale.enable = true;
|
2023-05-07 17:00:43 +02:00
|
|
|
|
|
|
|
security = {
|
|
|
|
polkit.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
libraspberrypi
|
|
|
|
];
|
|
|
|
|
|
|
|
system.stateVersion = "23.05";
|
|
|
|
}
|