Added: Network Configuration; .gitignore

This commit is contained in:
2026-02-14 18:46:39 +01:00
parent 89a06b2438
commit 3ebd34c830
3 changed files with 73 additions and 32 deletions

46
.gitignore vendored
View File

@@ -1,3 +1,43 @@
./cyber-rpi.tar.gz # Nix build outputs
./result result
./nixos-rpi4.img result-*
*.img
*.img.zst
*.qcow2
# Nix store
.dirlocals
# Build artifacts
*.o
*.a
*.so
*.dylib
# IDE/Editor
.vscode/
.idea/
*.swp
*.swo
*~
.DS_Store
# OS
.DS_Store
Thumbs.db
# Archives
*.tar.gz
*.tar.bz2
*.zip
# Local development
.envrc
direnv.allow
# Flake lock (optional - usually committed, but some prefer not to)
# flake.lock
# Temporary files
*.tmp
*.bak

View File

@@ -1,23 +1,24 @@
{ {
#pkgs, lib,
... ...
}: }:
{ {
# Host-specific packages
#environment.systemPackages = with pkgs; [
# python3
# nodejs
#];
# Any RPi 4 specific customizations go here # Any RPi 4 specific customizations go here
networking = { networking = {
hostName = "cyper-pi-1"; hostName = lib.mkForce "cyper-pi-1";
interfaces.end0.ipv4.addresses = [ interfaces.end0 = {
useDHCP = false;
ipv4.addresses = [
{ {
address = "192.168.2.41"; address = "192.168.2.41";
prefixLength = 24; prefixLength = 24;
} }
]; ];
}; };
firewall = {
enable = false;
};
};
} }

View File

@@ -1,8 +1,5 @@
{ {
config,
pkgs, pkgs,
inputs,
self,
primaryUser, primaryUser,
... ...
}: }:
@@ -16,6 +13,9 @@
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
# Speeding up builds
documentation.enable = false;
# Override python-lsp-server to skip tests (flaky tests cause timeout) # Override python-lsp-server to skip tests (flaky tests cause timeout)
nixpkgs.config.packageOverrides = pkgs: { nixpkgs.config.packageOverrides = pkgs: {
python3 = pkgs.python3.override { python3 = pkgs.python3.override {
@@ -29,14 +29,10 @@
networking = { networking = {
hostName = "cyper-pi"; hostName = "cyper-pi";
networkmanager = {
enable = true; useDHCP = false;
unmanaged = [ dhcpcd.enable = false;
"*" networkmanager.enable = false;
"except:type:wwan"
"except:type:gsm"
];
};
defaultGateway = "192.168.2.1"; defaultGateway = "192.168.2.1";
nameservers = [ nameservers = [
@@ -45,6 +41,10 @@
"1.1.1.1" "1.1.1.1"
]; ];
interfaces.wlan0 = {
useDHCP = true;
};
wireless = { wireless = {
enable = true; enable = true;
networks = { networks = {
@@ -55,10 +55,6 @@
}; };
enableIPv6 = false; enableIPv6 = false;
firewall = {
enable = false;
};
}; };
# SSH configuration # SSH configuration
@@ -78,6 +74,10 @@
"networkmanager" "networkmanager"
]; ];
shell = pkgs.fish; shell = pkgs.fish;
openssh.authorizedKeys.keys = [
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCaLHfxVylghDMYR8t4QMUpeRRqXasNABQKBEy9MmhbUXCcWiPbPMSZH8FMHON34rm2OrXP1kY/8jQxqBJDA+SqpFR2AZ4Khk9iVMaq5GHxxpn2amZUjoBa+fB29WaiE1npV5JVJV3O0ylw6GtiCnpneE6fGx2MO1vOY/7zKrUX/OK7WfwkDpeEzZgV/j/md917HrzUVeZwdeTq3WCRO8Gew6R8Xs6FRjSiGuH0dq14D4Ow5Zf1cI1jx+JfD/5vGasw8HXPu1NdxsOE+6D7/22IKqGr+S74/lAoyyD5qqk0s05lw8UY/PXBLJaNLZu9Fwx0BqTHpJEvftpmvd9wUxgR3msx9VXtKNSrqivIbDgeU+3oGzzkrGZODl7FCp4XKGmbrX85Z6lKwEGgv5jez4MLZcmT86bxB7m1wIbqSbVtfhS+GI7yPTA/kLzzFa14Im/+LTj95pb8qs2ALMwTMP1j2f9A6D3RriOFihL+68qn+YbK58KuV1R0f+CQRmlfVbk= phil@web.cyperpunk.de"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEuYuGhqRC/QLoRBH91c3DG5JHlAdRLQsvde18k5ipY2 phil@cyperpunk.de"
];
}; };
# Shell # Shell