nix-config/hosts/containers/deployer/configuration.nix

68 lines
1.4 KiB
Nix
Raw Normal View History

{ zentralwerk, config, pkgs, lib, ... }:
2019-07-03 15:35:21 +02:00
{
2021-02-22 11:45:12 +01:00
imports = [
../../../config
../../../config/lxc-container.nix
../../../config/shared.nix
2019-07-03 15:35:21 +02:00
];
2022-01-16 12:25:04 +01:00
c3d2.k-ot.enable = true;
2019-07-03 15:35:21 +02:00
environment.systemPackages = with pkgs; [
2021-02-22 11:45:12 +01:00
nixops
2019-07-03 15:35:21 +02:00
pass
gnupg
ansible
manpages
man
zsh
2019-07-03 20:16:11 +02:00
screen
2019-07-03 15:35:21 +02:00
];
2021-02-22 11:45:12 +01:00
networking.interfaces.eth0.ipv4.addresses = [{
address = "172.20.73.16";
prefixLength = zentralwerk.lib.config.site.net.serv.subnet4Len;
2021-02-22 11:45:12 +01:00
}];
networking.defaultGateway = "172.20.73.1";
2019-07-03 15:35:21 +02:00
networking = {
hostName = "deployer";
# usePredictableInterfacenames = false;
2019-07-03 20:16:11 +02:00
# interfaces.ens18.ipv4.addresses = [{
# address = "172.20.73.7";
# prefixLength = 26;
# }];
# interfaces.ens18.ipv6.addresses = [{
# address= "2a02:8106:208:5282:8c15:86ff:fe0f:b018";
# prefixLength = 64;
# }];
2019-07-03 15:35:21 +02:00
2019-07-03 20:16:11 +02:00
# nameservers = [ "172.20.72.6" "9.9.9.9" ];
2019-07-03 15:35:21 +02:00
2019-07-03 20:16:11 +02:00
# defaultGateway = {
# address = "172.20.73.1";
# interface = "eth0@if23";
# };
# #defaultGateway6 = {
2019-07-03 15:35:21 +02:00
# address = "fe80::a800:42ff:fe7a:3246";
# interface = "ens18";
#};
2021-02-22 11:45:12 +01:00
firewall.allowedTCPPorts = [ 22 ];
2019-07-03 15:35:21 +02:00
};
services.openssh = {
enable = true;
};
2020-10-18 17:26:21 +02:00
nix = {
buildCores = 32;
maxJobs = 32;
autoOptimiseStore = true;
};
2019-07-03 15:35:21 +02:00
2019-07-03 20:16:11 +02:00
security.sudo.wheelNeedsPassword = false;
2019-07-03 15:35:21 +02:00
2019-10-11 20:16:37 +02:00
system.stateVersion = "19.09"; # Did you read the comment?
2019-07-03 15:35:21 +02:00
}