Added special folders + more jellyfin stuff

This commit is contained in:
ari committed 2024-08-20 21:13:54 -04:00
1 parent dc8e0b81d9
commit 6ddf1846f6
7 files changed
+42 -1

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
{ config, lib, ... }:
with lib;
let cfg = config.skyg.server.admin;
in {
options = {
skyg.server.admin = {
enable = mkEnableOption
"Enable special linux user & groups";
};
};
config = mkIf cfg.enable {
users.groups.shared-files = {
gid = 6660;
members = [
config.skyg.user.name
];
};
};
}
+18 -1
View File
@@ -4,17 +4,34 @@ with lib;
let
cfg = config.skyg.nixos.server.services.jellyfin;
user = "jellyfin";
group = "jellyfin";
in
{
options = {
skyg.nixos.server.services.jellyfin = {
enable = mkEnableOption
"Enable AI Services";
"Enable Jellyfish";
};
};
config = mkIf cfg.enable {
users.users.${user} = {
uid = 7777;
isSystemUser = true;
};
users.groups.${group} = {
gid = 7777;
members = [
user
config.skyg.user.name
];
};
users.groups.shared-files.members = [
user
];
services.jellyfin = {
inherit user group;
enable = true;
dataDir = "/mnt/apps/jellyfin/datadir";
configDir = "/mnt/apps/jellyfin/configdir";