Skip to content

Commit

Permalink
Create data dir with nix module
Browse files Browse the repository at this point in the history
  • Loading branch information
gepbird committed Dec 25, 2024
1 parent 312896d commit 2b5795a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nix/module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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" ];
Expand Down

0 comments on commit 2b5795a

Please sign in to comment.