nixos-config/machines/regin/configuration.nix

70 lines
1.3 KiB
Nix
Raw Normal View History

2023-05-23 17:12:31 +02:00
{ nixpkgs, nixos-hardware, ... }:
{ pkgs, ... }:
{
imports = [
"${nixpkgs}/nixos/modules/installer/sd-card/sd-image-aarch64.nix"
2023-05-23 17:12:31 +02:00
nixos-hardware.nixosModules.raspberry-pi-4
../../users/root
../../users/erwin
2023-05-25 08:01:53 +02:00
./home.nix
];
eboskma = {
users.erwin = {
enable = true;
server = true;
};
klipper.enable = true;
networking.enable = true;
nix-common.enable = true;
systemd.enable = true;
};
2023-05-25 08:01:53 +02:00
# nixpkgs.crossSystem.system = "aarch64-linux";
hardware = {
enableAllFirmware = true; # This also sets hardware.enableRedistributableFirmware
2023-05-23 17:12:31 +02:00
raspberry-pi."4".fkms-3d = {
enable = true;
cma = 256;
};
};
boot = {
2023-05-23 17:12:31 +02:00
bootspec.enable = true;
2023-05-25 08:01:53 +02:00
kernelPackages = pkgs.linuxPackages_rpi4;
};
zramSwap.enable = true;
sdImage.compressImage = false;
networking = {
hostName = "regin";
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;
security = {
polkit.enable = true;
};
2024-02-05 11:46:52 +01:00
environment.systemPackages = with pkgs; [ libraspberrypi ];
system.stateVersion = "23.05";
}