63 lines
1,009 B
Nix
63 lines
1,009 B
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;
|
||
|
networking.enable = true;
|
||
|
nix-common.enable = true;
|
||
|
systemd.enable = true;
|
||
|
};
|
||
|
|
||
|
hardware = {
|
||
|
enableAllFirmware = true;
|
||
|
};
|
||
|
|
||
|
boot = {
|
||
|
bootspec.enable = true;
|
||
|
};
|
||
|
|
||
|
zramSwap.enable = true;
|
||
|
|
||
|
networking = {
|
||
|
hostName = "thor";
|
||
|
useDHCP = true;
|
||
|
useNetworkd = true;
|
||
|
wireless.enable = true;
|
||
|
};
|
||
|
|
||
|
systemd.network = {
|
||
|
enable = true;
|
||
|
|
||
|
networks = {
|
||
|
"40-eth0" = {
|
||
|
DHCP = "yes";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
services.openssh.enable = true;
|
||
|
|
||
|
security = {
|
||
|
polkit.enable = true;
|
||
|
};
|
||
|
|
||
|
environment.systemPackages = with pkgs; [
|
||
|
libraspberrypi
|
||
|
];
|
||
|
|
||
|
system.stateVersion = "23.05";
|
||
|
}
|