Added: Static IP Configuration
This commit is contained in:
23
hosts/cyper-pi-1/configuration.nix
Normal file
23
hosts/cyper-pi-1/configuration.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
#pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
# Host-specific packages
|
||||
#environment.systemPackages = with pkgs; [
|
||||
# python3
|
||||
# nodejs
|
||||
#];
|
||||
|
||||
# Any RPi 4 specific customizations go here
|
||||
networking = {
|
||||
hostName = "cyper-pi-1";
|
||||
interfaces.end0.ipv4.addresses = [
|
||||
{
|
||||
address = "192.168.2.41";
|
||||
prefixLength = 24;
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
{ config, pkgs, primaryUser, ... }:
|
||||
|
||||
{
|
||||
# Host-specific packages
|
||||
environment.systemPackages = with pkgs; [
|
||||
# python3
|
||||
# nodejs
|
||||
];
|
||||
|
||||
# Any RPi 4 specific customizations go here
|
||||
networking.hostName = "rpi-4";
|
||||
}
|
||||
Reference in New Issue
Block a user