mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-04-02 02:00:51 +02:00
Updated config for rpi
This commit is contained in:
parent
a36c041fda
commit
171ee59ab4
1 changed files with 21 additions and 11 deletions
14
rpi.nix
14
rpi.nix
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
# if you have a Raspberry Pi 2 or 3, pick this:
|
# if you have a Raspberry Pi 2 or 3, pick this:
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
networking.hostName = "lambda";
|
||||||
# A bunch of boot parameters needed for optimal runtime on RPi 3b+
|
# A bunch of boot parameters needed for optimal runtime on RPi 3b+
|
||||||
boot.kernelParams = [ "cma=256M" ];
|
boot.kernelParams = [ "cma=256M" ];
|
||||||
boot.loader.raspberryPi.enable = true;
|
boot.loader.raspberryPi.enable = true;
|
||||||
|
@ -31,7 +31,17 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Preserve space by sacrificing documentation and history
|
|
||||||
|
networking.interfaces.eth0.useDHCP = false;
|
||||||
|
networking.interfaces.eth0.ipv4.addresses = [
|
||||||
|
{
|
||||||
|
address = "129.199.134.202";
|
||||||
|
prefixLength = 24;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
networking.defaultGateway = "129.199.134.254";
|
||||||
|
networking.nameservers = [ "8.8.8.8" ];
|
||||||
|
|
||||||
documentation.nixos.enable = false;
|
documentation.nixos.enable = false;
|
||||||
nix.gc.automatic = true;
|
nix.gc.automatic = true;
|
||||||
nix.gc.options = "--delete-older-than 30d";
|
nix.gc.options = "--delete-older-than 30d";
|
||||||
|
|
Loading…
Add table
Reference in a new issue