athens/nix/hosts/aristotle/configuration.nix

38 lines
1.1 KiB
Nix
Raw Normal View History

2022-12-27 10:10:53 -05:00
{ pkgs, nixos-hardware, ... }:
2021-04-26 20:28:47 -04:00
{
2022-01-24 18:35:39 -05:00
imports = [
# Include the results of the hardware scan.
2021-04-26 20:28:47 -04:00
./hardware-configuration.nix
2022-06-28 22:12:01 -04:00
nixos-hardware.nixosModules.raspberry-pi-4
../../modules/base/nixos.nix
2021-06-21 22:44:03 -04:00
2021-10-30 23:33:26 -04:00
../../modules/ipfs/cluster.nix
2021-11-15 21:26:30 -05:00
../../modules/sops
2021-04-26 20:28:47 -04:00
];
2023-09-10 14:27:05 -04:00
hardware = {
raspberry-pi."4".poe-hat.enable = true;
};
2023-12-20 11:10:46 -05:00
time.timeZone = "America/Toronto";
2023-09-10 14:27:05 -04:00
networking = {
# networking.hostName = "nixos"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
# Per-interface useDHCP will be mandatory in the future, so this generated config
# replicates the default behaviour.
useDHCP = false;
interfaces.eth0.useDHCP = true;
interfaces.wlan0.useDHCP = true;
firewall.enable = false;
};
2021-04-26 20:28:47 -04:00
users.users.root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ0mE4MyMnfd1b2nlBJT7kpZ6Vov+ILuGNfzdp5ZBNQe walkah@walkah.net"
];
2023-07-17 17:01:34 -04:00
environment.systemPackages = with pkgs; [ libraspberrypi raspberrypi-eeprom ];
2021-04-26 20:28:47 -04:00
}