depot/hosts/soda/system.nix

31 lines
662 B
Nix
Raw Normal View History

{ config, depot, ... }:
2022-05-28 22:53:03 +03:00
{
imports = with depot.nixosModules; [
containerBase
fail2ban
2023-06-11 18:05:35 +03:00
depot.inputs.agenix.nixosModules.age
2022-05-28 22:53:03 +03:00
./soda.nix
];
2022-05-28 22:53:03 +03:00
boot.isContainer = true;
networking.useDHCP = false;
networking.interfaces.${config.reflection.interfaces.primary.link}.useDHCP = true;
2022-05-28 22:53:03 +03:00
2023-08-31 01:55:45 +03:00
networking.nameservers = [ depot.hours.VEGAS.interfaces.vstub.addr ];
2022-05-28 22:53:03 +03:00
2023-08-31 01:55:45 +03:00
networking.resolvconf.extraConfig = "local_nameservers='${depot.hours.VEGAS.interfaces.vstub.addr}'";
2022-05-28 22:53:03 +03:00
networking.hostName = "soda";
time.timeZone = "Europe/Helsinki";
i18n.defaultLocale = "en_US.UTF-8";
services.openssh.enable = true;
system.stateVersion = "21.11";
}