dot_testing/boxes/mainsail/default.nix

75 lines
1.8 KiB
Nix
Raw Permalink Normal View History

2023-10-30 16:15:31 -05:00
{ lib, config, pkgs, ...}:
{
imports = [
2023-12-28 15:59:44 -06:00
./hardware-configuration.nix
../../modules/ssh-phone-home.nix
2023-12-28 15:59:44 -06:00
../../modules/bootstrap.nix
../../modules/common.nix
2023-10-30 16:15:31 -05:00
];
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/sda";
networking.hostName = "mainsail";
services.getty.greetingLine = "
welcome to mainsail |`-:_
,----....____ | `+.
( ````----....|___ |
\\ _ ````----....____
\\ _) ```---.._
\\ \\
)`.\\ )`. )`. )`. )`. )`. )`. )`. )`. )`. )`.
-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `-' `
";
environment.systemPackages = with pkgs; [
2024-01-21 12:07:54 -06:00
neovim
git
curl
];
services.home-assistant = {
enable = true;
extraComponents = [
# Components required to complete the onboarding
"netgear"
"hue"
"nest"
"esphome"
"met"
"radio_browser"
];
config = {
# Includes dependencies for a basic setup
# https://www.home-assistant.io/integrations/default_config/
default_config = {};
};
openFirewall = true;
};
services.openssh = {
enable = true;
settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;
};
};
services.ssh-phone-home = {
enable = true;
localUser = "usr";
remoteHostname = "beepboop.systems";
remotePort = 443;
remoteUser = "ryan";
2024-01-25 00:11:28 -06:00
bindPort = 55554;
};
2024-01-21 12:07:54 -06:00
users.users.usr.openssh.authorizedKeys.keys = [
2024-01-24 23:04:51 -06:00
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKbhM3wj0oqjR3pUaZgpfX4Xo4dlzvBTbQ48zHyg7Pwx usr" # x230t
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB2xUbQw9+RCPVw7qCFm4NNCP/MpS2BIArcwMv0KdKOI usr" # mlg
2023-10-30 16:15:31 -05:00
];
2023-11-22 16:53:33 -06:00
2023-12-28 15:59:44 -06:00
system.stateVersion = "23.11";
2023-10-30 16:15:31 -05:00
}