diff options
author | sefidel <contact@sefidel.net> | 2024-01-24 20:38:32 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2024-01-24 20:38:32 +0900 |
commit | 101f70be1687f1bd87c61c60eee2dfe82b4462c8 (patch) | |
tree | 916708633518b156e651d011605ca839add739a8 | |
parent | 7dfd6977aad6ddbb742c738d39daa388557b315b (diff) | |
download | nixrc-101f70be1687f1bd87c61c60eee2dfe82b4462c8.tar.gz nixrc-101f70be1687f1bd87c61c60eee2dfe82b4462c8.zip |
chore(modules/services): update template
-rw-r--r-- | modules/services/_template.nix | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/modules/services/_template.nix b/modules/services/_template.nix index b56d34f..c0c12c1 100644 --- a/modules/services/_template.nix +++ b/modules/services/_template.nix @@ -2,22 +2,16 @@ with lib; let - cfg = config.modules.containers._template; + cfg = config.modules.services._template; in { - options.modules.containers._template = { + options.modules.services._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"; - }; + services._template = { + enable = true; }; }; } |