blob: b56d34fb03160486f8dceeadbffea65d8c3ed6ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{ config, lib, ... }:
with lib;
let
cfg = config.modules.containers._template;
in
{
options.modules.containers._template = {
enable = mkEnableOption "";
};
config = mkIf cfg.enable {
containers._template = {
autoStart = true;
ephemeral = true; # XXX: false if the container isn't stateless
privateNetwork = true;
# XXX: more network setup (IP) needed here
config = { config, pkgs, ...}: {
system.stateVersion = "24.05";
};
};
};
}
|