dot_testing/boxes/netbox/default.nix

79 lines
1.6 KiB
Nix
Raw Normal View History

2023-07-07 23:44:40 -05:00
{ lib, config, pkgs, ... }:
2024-02-25 20:29:31 -06:00
{
2023-07-07 23:44:40 -05:00
imports =
[
2024-01-18 04:28:32 -06:00
./hardware-configuration.nix
../../modules/bootstrap.nix
2024-06-20 20:00:55 -05:00
./radicale.nix
./ssh.nix
./gitea.nix
./radicale.nix
./vaultwarden.nix
./sslh.nix
./rss2email.nix
./fail2ban.nix
./nginx.nix
./franklincce.nix
2023-07-07 23:44:40 -05:00
];
# nix optimization
nix.optimise = {
automatic = true;
dates = [ "03:45" ];
};
2024-01-18 04:28:32 -06:00
time.timeZone = "America/Chicago";
i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminus16";
keyMap = "us";
};
environment.systemPackages = with pkgs; [
2024-06-15 21:58:09 -05:00
python3
2024-01-18 04:28:32 -06:00
curl
htop
git
tree
dig
htop
2024-01-19 18:56:48 -06:00
neovim
2024-01-18 04:28:32 -06:00
];
2024-06-20 20:00:55 -05:00
system = {
copySystemConfiguration = true;
stateVersion = "23.05"; # don't change this, lol
2024-01-21 12:40:51 -06:00
};
2024-06-20 20:00:55 -05:00
boot.loader = {
grub.enable = true;
grub.device = "/dev/vda";
2023-12-03 21:46:37 -06:00
};
users.users.ryan = {
2024-01-21 12:14:04 -06:00
openssh.authorizedKeys.keys = [
2024-01-24 23:42:18 -06:00
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKbhM3wj0oqjR3pUaZgpfX4Xo4dlzvBTbQ48zHyg7Pwx usr" # x230t
2024-07-22 16:30:37 -05:00
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILBGh1FHPneg7PCDkhMs2BCJPTIRVJkRTKpOj1w02ydD usr" # copernicus
2024-01-24 23:42:18 -06:00
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGrpVDLQszFKoYbvYKRyVTTpehxR0BVU47SXkz39l2wK usr" # mainsail
2024-04-25 17:10:06 -05:00
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHZw5bg0TrvSkW/XQa4c+2iLbIKOxfMGbjy5Nb3HSfBv usr" # phone
2024-01-21 12:14:04 -06:00
];
isNormalUser = true;
extraGroups = [ "wheel" "docker" ];
};
2024-06-20 20:00:55 -05:00
networking = {
usePredictableInterfaceNames = false;
networkmanager.enable = true;
hostName = "netbox";
2023-07-07 23:44:40 -05:00
2024-06-20 20:00:55 -05:00
firewall = {
enable = true;
allowedTCPPorts = [ 80 443 ];
};
2023-12-03 19:50:26 -06:00
};
2023-07-07 23:44:40 -05:00
}