nix: format with alejandra

This commit is contained in:
Primrose 2025-02-08 12:05:12 +01:00
parent d5cad148da
commit 95eb4b71e0
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
118 changed files with 1291 additions and 1703 deletions

View file

@ -3,42 +3,32 @@
lib,
config,
...
}:
let
}: let
cfg = config.services.parrot;
t = lib.types;
in
{
in {
options = {
services.parrot = {
enable = lib.mkEnableOption "parrot";
environmentFile = lib.mkOption {
description = "Path to an environment file, you can set the token there";
type = t.path;
};
};
};
config = lib.mkIf cfg.enable {
users.users."parrot" = {
group = "parrot";
isSystemUser = true;
};
users.groups."parrot" = { };
users.groups."parrot" = {};
systemd.services."parrot" = {
description = " A hassle-free, highly performant, self-hosted Discord music bot with YouTube and Spotify support. Powered by yt-dlp.";
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
after = ["network.target"];
wantedBy = ["multi-user.target"];
serviceConfig = {
User = "parrot";
@ -48,9 +38,6 @@ in
ExecStart = "${lib.getExe pkgs.parrot}";
};
};
};
}