feat: added preliminary media-server module options

This commit is contained in:
serenity-F 2026-10-03 03:53:36 +10:00
parent 2d6cc6bd08
commit 5fc681ee97
No known key found for this signature in database
3 changed files with 65 additions and 19 deletions

View file

@ -0,0 +1,42 @@
# base level inputs, should only ever be self and inputs
{ self, inputs, ... }:
{
# module name declaration, as well as any required inputs
flake.nixosModules.media-server =
{ user-parts, ... }:
{
# import system level module for home manager functionality
imports = [ inputs.home-manager.nixosModules.home-manager ];
# system level nixflix options
nixflix = {
enable = true;
mediaDir = "/run/media/serenity/Orcus/media-share";
stateDir = "/home/serenity/.config/nixflix/.state";
jellyfin = {
enable = true;
users.{user-parts.user.username} = {
policy.isAdministrator = true;
password = "password";
};
};
};
# home manager options
home-manager.users.${user-parts.user.username} = {
# necessary for module name functionality
#imports = [ ];
};
};
}