From 101f70be1687f1bd87c61c60eee2dfe82b4462c8 Mon Sep 17 00:00:00 2001 From: sefidel Date: Wed, 24 Jan 2024 20:38:32 +0900 Subject: chore(modules/services): update template --- modules/services/_template.nix | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'modules/services/_template.nix') 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; }; }; } -- cgit 1.4.1