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 = {
|
|
|
|
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;
|
|
|
|
};
|
2023-05-07 17:00:43 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
boot = {
|
|
|
|
bootspec.enable = true;
|
2023-05-25 08:01:53 +02:00
|
|
|
kernelPackages = pkgs.linuxPackages_rpi4;
|
2023-05-07 17:00:43 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
|
|
|
}
|