Added: Static IP Configuration
This commit is contained in:
11
flake.nix
11
flake.nix
@@ -20,13 +20,20 @@
|
||||
spicetify-nix.url = "github:Gerg-L/spicetify-nix";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, home-manager, nixvim, ... }@inputs:
|
||||
outputs =
|
||||
{
|
||||
self,
|
||||
nixpkgs,
|
||||
home-manager,
|
||||
nixvim,
|
||||
...
|
||||
}@inputs:
|
||||
let
|
||||
primaryUser = "phil";
|
||||
system = "aarch64-linux";
|
||||
in
|
||||
{
|
||||
nixosConfigurations."rpi-4" = nixpkgs.lib.nixosSystem {
|
||||
nixosConfigurations."cyper-pi-1" = nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [
|
||||
./nixos/default.nix
|
||||
|
||||
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";
|
||||
}
|
||||
@@ -28,8 +28,37 @@
|
||||
};
|
||||
|
||||
networking = {
|
||||
hostName = "rpi-4";
|
||||
networkmanager.enable = true;
|
||||
hostName = "cyper-pi";
|
||||
networkmanager = {
|
||||
enable = true;
|
||||
unmanaged = [
|
||||
"*"
|
||||
"except:type:wwan"
|
||||
"except:type:gsm"
|
||||
];
|
||||
};
|
||||
|
||||
defaultGateway = "192.168.2.1";
|
||||
nameservers = [
|
||||
"192.168.2.2"
|
||||
"8.8.8.8"
|
||||
"1.1.1.1"
|
||||
];
|
||||
|
||||
wireless = {
|
||||
enable = true;
|
||||
networks = {
|
||||
LANFRED = {
|
||||
pskRaw = "36e2b41b51328800a9582be1a05f13f796f943569610ccdb61304803b86ce3da";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
enableIPv6 = false;
|
||||
|
||||
firewall = {
|
||||
enable = false;
|
||||
};
|
||||
};
|
||||
|
||||
# SSH configuration
|
||||
|
||||
Reference in New Issue
Block a user