Manage data-access container declaratively

This commit is contained in:
Charlotte Van Petegem 2020-12-23 11:52:22 +01:00
parent 45761cb113
commit 565ee07812
No known key found for this signature in database
GPG key ID: 019E764B7184435A
8 changed files with 72 additions and 6 deletions

View file

@ -40,6 +40,11 @@
default = false;
example = true;
};
hasContainers = lib.mkOption {
default = false;
example = true;
};
};
config = {
@ -61,6 +66,11 @@
ripgrep
];
console = {
font = "Lat2-Terminus16";
keyMap = "us";
};
i18n = {
defaultLocale = "en_IE.UTF-8";
extraLocaleSettings = {
@ -68,9 +78,11 @@
};
};
console = {
font = "Lat2-Terminus16";
keyMap = "us";
networking.nat = lib.mkIf config.chvp.hasContainers {
enable = true;
enableIPv6 = true;
internalInterfaces = [ "ve-+" ];
externalInterface = "eno3";
};
users = {