nixos-config/machines/thor/configuration.nix

85 lines
1.4 KiB
Nix
Raw Normal View History

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;
};
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;
nix-common = {
enable = true;
remote-builders = true;
};
2023-05-07 17:00:43 +02:00
systemd.enable = true;
};
hardware = {
enableAllFirmware = true;
raspberry-pi."4".fkms-3d = {
enable = true;
cma = 256;
};
2023-05-07 17:00:43 +02:00
};
boot = {
bootspec.enable = true;
};
zramSwap.enable = true;
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";
}