about summary refs log tree commit diff
path: root/modules/services/_template.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/services/_template.nix')
-rw-r--r--modules/services/_template.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/modules/services/_template.nix b/modules/services/_template.nix
new file mode 100644
index 0000000..b56d34f
--- /dev/null
+++ b/modules/services/_template.nix
@@ -0,0 +1,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";
+      };
+    };
+  };
+}