stuff from pi

This commit is contained in:
mjallen18
2025-03-03 18:17:33 -06:00
parent 5da59d8964
commit 6d1e9e59d7
4 changed files with 34 additions and 12 deletions

View File

@@ -8,7 +8,7 @@ let
user = "matt";
password = "$y$j9T$EkPXmsmIMFFZ.WRrBYCxS1$P0kwo6e4.WM5DsqUcEqWC3MrZp5KfCjxffraMFZWu06";
SSID = "Joey's Jungle 5G";
SSIDpassword = config.sops.templates."wifi-password".content;
SSIDpassword = ""; # config.sops.templates."wifi-password".content;
interface = "wlan0";
timezone = "America/Chicago";
hostname = "pi4";
@@ -16,10 +16,11 @@ in
{
imports = [
# Include the results of the hardware scan.
./adguard.nix
./boot.nix
./hardware-configuration.nix
./impermanence.nix
./sops.nix
# ./sops.nix
./ups-monitor.nix
../default.nix
];
@@ -79,13 +80,28 @@ in
time.timeZone = timezone;
networking = {
networkmanager.enable = lib.mkForce true;
networkmanager.enable = lib.mkForce false;
hostName = hostname;
wireless = {
enable = false;
networks."${SSID}".psk = SSIDpassword;
interfaces = [ interface ];
};
defaultGateway.address = "10.0.1.1";
nameservers = [ "10.0.1.1" ];
interfaces.enabcm6e4ei0.ipv4.addresses = [ {
address = "10.0.1.2";
prefixLength = 24;
} ];
firewall = {
enable = true;
allowPing = true;
allowedTCPPorts = [ 80 53 ];
allowedUDPPorts = [ 80 53 ];
};
};
systemd.services.btattach = {