Major revamp and restructuring of k8s setup:
* replicated etcd setup for redundancy * use Flannel network overlay * naming conventions * new repo structure * etc.
This commit is contained in:
40
base/configuration.nix
Normal file
40
base/configuration.nix
Normal file
@@ -0,0 +1,40 @@
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
# Use the GRUB 2 boot loader.
|
||||
boot.loader.grub.enable = true;
|
||||
boot.loader.grub.version = 2;
|
||||
boot.loader.grub.device = "/dev/sda";
|
||||
boot.kernel.sysctl."vm.overcommit_memory"= 1;
|
||||
|
||||
services.vmwareGuest.enable = true;
|
||||
|
||||
# Select internationalisation properties.
|
||||
i18n = {
|
||||
consoleFont = "Lat2-Terminus16";
|
||||
consoleKeyMap = "us";
|
||||
defaultLocale = "en_US.UTF-8";
|
||||
};
|
||||
|
||||
# Set your time zone.
|
||||
time.timeZone = "Europe/Oslo";
|
||||
|
||||
networking.search = [ "itpartner.intern" "itpartner.no" ];
|
||||
# Enable the OpenSSH daemon.
|
||||
services.openssh.enable = true;
|
||||
|
||||
# The NixOS release to be compatible with for stateful data such as databases.
|
||||
system.stateVersion = "17.03";
|
||||
programs.zsh.enable = true;
|
||||
programs.tmux.enable = true;
|
||||
|
||||
virtualisation.docker.enable = true;
|
||||
|
||||
security.rtkit.enable = true;
|
||||
|
||||
fileSystems."/data" = {
|
||||
device = "10.253.18.103:/data";
|
||||
fsType = "nfs";
|
||||
};
|
||||
|
||||
imports = [ ./users.nix ./packages.nix ];
|
||||
}
|
||||
Reference in New Issue
Block a user