nix-configurations/hosts/lkk-nix-1/default.nix

48 lines
1.1 KiB
Nix
Raw Normal View History

2022-12-30 12:05:46 +00:00
{ pkgs, ... }: {
imports = [
./hardware-configuration.nix
../common/users/m3tam3re
../common/base
./services
];
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
services.openssh.enable = true;
services.openssh.passwordAuthentication = false;
networking = {
hostName = "lkk-nix-1";
2023-01-19 11:24:38 +00:00
firewall.enable = false;
2022-12-30 12:05:46 +00:00
firewall.allowedTCPPortRanges = [{
from = 3000;
to = 3100;
}];
2023-01-18 19:14:16 +00:00
firewall.allowedTCPPorts = [ 80 443 5432 3478 ];
firewall.allowedUDPPortRanges = [ {
from = 3478;
to = 3481;
} ];
2022-12-30 12:05:46 +00:00
};
age = {
secrets = {
mj-smtp-user.file = ../../secrets/mj-smtp-user.age;
mj-smtp-pass.file = ../../secrets/mj-smtp-pass.age;
2023-01-19 11:24:38 +00:00
billbee-api-key.file = ../../secrets/billbee-api-key.age;
};
identityPaths = [ "/home/m3tam3re/.ssh/lkk-nix-1" ];
};
2022-12-30 12:05:46 +00:00
nix = {
gc = {
automatic = true;
options = "--delete-older-than 30d";
};
optimise.automatic = true;
};
system.stateVersion = "22.11"; # Did you read the comment?
}