Manage data-access container declaratively
This commit is contained in:
parent
45761cb113
commit
565ee07812
8 changed files with 72 additions and 6 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue