nixos-config/machines/thor/configuration.nix

83 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 = {
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;
};
};
boot = {
bootspec.enable = true;
kernelPackages = pkgs.linuxPackages_rpi4;
};
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";
}