2022-04-10 13:59:39 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
|
|
boot = {
|
|
|
|
loader = {
|
|
|
|
grub.enable = false;
|
|
|
|
raspberryPi = {
|
|
|
|
enable = true;
|
|
|
|
version = 3;
|
|
|
|
uboot.enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
kernelPackages = pkgs.linuxPackages_latest;
|
|
|
|
# No ZFS on latest kernel:
|
2023-05-25 22:58:14 +02:00
|
|
|
tmp.useTmpfs = true;
|
2022-04-10 13:59:39 +02:00
|
|
|
};
|
|
|
|
|
2022-04-19 16:39:09 +02:00
|
|
|
nix = {
|
2022-11-18 17:45:03 +01:00
|
|
|
settings.auto-optimise-store = true;
|
2022-04-19 16:39:09 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2022-04-10 13:59:39 +02:00
|
|
|
networking = {
|
|
|
|
hostName = "sanddorn";
|
|
|
|
|
|
|
|
useDHCP = false;
|
|
|
|
interfaces.eth0.useDHCP = true;
|
|
|
|
interfaces.wlan0.useDHCP = true;
|
|
|
|
firewall.enable = false;
|
|
|
|
};
|
|
|
|
|
2022-04-19 16:39:09 +02:00
|
|
|
programs.tmux.enable = true;
|
|
|
|
|
2022-04-10 13:59:39 +02:00
|
|
|
# Do not log to flash:
|
|
|
|
services.journald.extraConfig = ''
|
|
|
|
Storage=volatile
|
|
|
|
'';
|
|
|
|
|
|
|
|
security.sudo = {
|
|
|
|
enable = true;
|
|
|
|
wheelNeedsPassword = false;
|
|
|
|
};
|
|
|
|
|
2022-04-19 16:39:09 +02:00
|
|
|
documentation.enable = false;
|
2022-09-06 17:16:31 +02:00
|
|
|
|
|
|
|
system.stateVersion = "21.05";
|
2022-04-10 13:59:39 +02:00
|
|
|
}
|