nixos-config/machines/thor/configuration.nix

84 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
./home.nix
];
eboskma = {
users.erwin = {
enable = true;
};
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;
};
networking.enable = true;
nix-common = {
enable = true;
remote-builders = true;
};
systemd.enable = true;
};
hardware = {
enableAllFirmware = true;
raspberry-pi."4".fkms-3d = {
enable = true;
cma = 256;
};
};
boot = {
bootspec.enable = true;
};
zramSwap.enable = true;
sdImage.compressImage = false;
networking = {
hostName = "thor";
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";
}