dot_testing/boxes/mainsail/default.nix

64 lines
1.5 KiB
Nix
Raw 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/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;
};
};
users.users.usr.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKbhM3wj0oqjR3pUaZgpfX4Xo4dlzvBTbQ48zHyg7Pwx usr"
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
}