This commit is contained in:
2025-11-26 17:42:05 +01:00
parent c66dd11217
commit f8fca9092d
4 changed files with 79 additions and 197 deletions

56
hosts/rpi4/default.nix Normal file
View File

@@ -0,0 +1,56 @@
{
config,
lib,
pkgs,
...
}:
{
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
./fan-controll.nix
];
boot.loader = {
grub.enable = false;
generic-extlinux-compatible.enable = true;
};
networking.hostName = "nix-rpi4-1"; # Define your hostname.
networking = {
networkmanager.enable = false;
useNetworkd = true;
useDHCP = false;
interfaces.end0 = {
defaultGateway = {
address = "192.168.2.1";
interface = "end0";
};
nameservers = [
"192.168.2.2"
"1.1.1.1"
"8.8.8.8"
];
};
wireless = {
enable = true;
userControlled.enable = false;
networks = {
"LANFRED".psk = "CooleJungsWG";
};
};
};
# Set your time zone.
time.timeZone = "Europe/Berlin";
networking.firewall.enable = false;
system.stateVersion = "25.11"; # Did you read the comment?
}