added sanddorn config

This commit is contained in:
revol-xut 2022-04-10 13:59:39 +02:00
parent 10ece5d65f
commit a8a8e6bad5
No known key found for this signature in database
GPG key ID: B966009D57E69CC6
28 changed files with 327 additions and 38 deletions

View file

@ -0,0 +1,42 @@
{ config, lib, pkgs, ... }:
{
imports = [
./hardware-configuration.nix
];
boot = {
loader = {
grub.enable = false;
raspberryPi = {
enable = true;
version = 3;
uboot.enable = true;
};
};
kernelPackages = pkgs.linuxPackages_latest;
# No ZFS on latest kernel:
tmpOnTmpfs = true;
};
networking = {
hostName = "sanddorn";
useDHCP = false;
interfaces.eth0.useDHCP = true;
interfaces.wlan0.useDHCP = true;
firewall.enable = false;
};
# Do not log to flash:
services.journald.extraConfig = ''
Storage=volatile
'';
security.sudo = {
enable = true;
wheelNeedsPassword = false;
};
system.stateVersion = "21.11";
}