Added
This commit is contained in:
56
hosts/rpi4/default.nix
Normal file
56
hosts/rpi4/default.nix
Normal 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?
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user