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