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

79 lines
1.6 KiB
Nix
Raw Normal View History

2019-07-03 15:35:21 +02:00
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, lib, ... }:
{
2021-02-22 11:45:12 +01:00
imports = [
2021-10-03 00:17:24 +02:00
../../../lib
2021-02-22 11:45:12 +01:00
../../../lib/lxc-container.nix
2019-07-03 15:35:21 +02:00
../../../lib/shared.nix
2019-07-03 20:16:11 +02:00
../../../lib/admins.nix
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 = 26;
}];
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;
permitRootLogin = "yes";
};
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
users.extraUsers.k-ot = {
2021-02-22 11:45:12 +01:00
isNormalUser = true;
uid = 1000;
2019-07-03 15:35:21 +02:00
extraGroups = [ "wheel" ];
};
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
}