2024-05-03 17:32:27 -04:00
|
|
|
{ pkgs, lib, ... }: {
|
|
|
|
imports = [ ./hardware-configuration.nix ];
|
2024-02-29 09:53:34 -05:00
|
|
|
|
|
|
|
system.stateVersion = "24.05";
|
|
|
|
|
|
|
|
host = {
|
|
|
|
role = "server";
|
|
|
|
users.aires.enable = true;
|
|
|
|
boot.enable = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
networking.hostName = "Pihole";
|
|
|
|
time.timeZone = "America/New_York";
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
libraspberrypi
|
|
|
|
raspberrypifw
|
|
|
|
raspberrypi-eeprom
|
|
|
|
linuxKernel.kernels.linux_rpi4
|
|
|
|
];
|
|
|
|
|
|
|
|
# Connect to the network automagically
|
|
|
|
networking.networkmanager.enable = lib.mkForce false;
|
|
|
|
|
|
|
|
# Enable SSH
|
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
|
|
|
ports = [ 33105 ];
|
|
|
|
|
|
|
|
settings = {
|
|
|
|
PasswordAuthentication = true;
|
|
|
|
AllowUsers = ["aires"];
|
|
|
|
PermitRootLogin = "no";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|