From 2b5795a76d463dac517a50ccfc982aa4d05bd7de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gutyina=20Gerg=C5=91?= Date: Wed, 25 Dec 2024 15:54:39 +0100 Subject: [PATCH] Create data dir with nix module --- nix/module.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nix/module.nix b/nix/module.nix index 920cf38..9710f81 100644 --- a/nix/module.nix +++ b/nix/module.nix @@ -75,6 +75,10 @@ in networking.firewall.allowedTCPPorts = mkIf cfg.openFirewall [ cfg.settings.status-port ]; + systemd.tmpfiles.rules = [ + "d ${dataDir} 0750 ${user} ${cfg.group}" + ]; + systemd.services.moe = { description = "Moe, a multi-purpose Discord bot made using Discord.Net."; wantedBy = [ "multi-user.target" ];