nix/nixos/containers/default.nix

49 lines
1.2 KiB
Nix
Raw Normal View History

2024-04-08 04:23:23 +02:00
{ ip, stateVersion, hostname, ... }: {
2024-03-21 12:27:53 +01:00
imports = [
2024-03-21 10:51:41 +01:00
./${hostname}
2024-04-07 01:42:00 +02:00
# Modules
2024-03-21 10:51:41 +01:00
../common/modules/nixos.nix
2024-04-07 01:42:00 +02:00
../common/modules/networking.nix
2024-03-30 07:27:21 +01:00
# Services
../common/services/promtail.nix
../common/services/telegraf.nix
../common/services/openssh.nix
2024-04-07 14:05:15 +02:00
../common/services/gnupg-agent.nix
../common/services/tailscale.nix
2024-03-21 10:51:41 +01:00
];
2024-03-30 07:27:21 +01:00
networking = {
defaultGateway = {
address = "192.168.2.1";
interface = "eth0";
};
interfaces = {
eth0.ipv4.addresses = [{
address = "192.168.2.${ip}";
prefixLength = 24;
}];
};
2024-04-07 01:42:00 +02:00
};
2024-11-29 01:48:03 +01:00
time.timeZone = "Europe/Warsaw";
2024-03-30 07:27:21 +01:00
boot.isContainer = true;
system.stateVersion = stateVersion;
networking.hostName = hostname;
programs.fish.enable = true;
2024-06-27 10:28:29 +02:00
2024-04-07 14:05:15 +02:00
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "en_US.UTF-8";
LC_IDENTIFICATION = "en_US.UTF-8";
LC_MEASUREMENT = "en_US.UTF-8";
LC_MONETARY = "en_US.UTF-8";
LC_NAME = "en_US.UTF-8";
LC_NUMERIC = "en_US.UTF-8";
LC_PAPER = "en_US.UTF-8";
LC_TELEPHONE = "en_US.UTF-8";
LC_TIME = "en_US.UTF-8";
};
2024-03-21 10:51:41 +01:00
}