Compare commits

...

2 Commits

Author SHA1 Message Date
7eb065a536 Merge branch 'main' of https://git.cyperpunk.de/DerGrumpf/cyper-rpi
Merged
2026-02-11 23:50:34 +01:00
779fca1741 Added: Static IP Configuration 2026-02-11 23:50:01 +01:00
4 changed files with 69 additions and 22 deletions

View File

@@ -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

View 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;
}
];
};
}

View File

@@ -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";
}

View File

@@ -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