feat: added preliminary media-server module options
This commit is contained in:
parent
2d6cc6bd08
commit
5fc681ee97
3 changed files with 65 additions and 19 deletions
42
modules/features/connectivity/media-server.nix
Normal file
42
modules/features/connectivity/media-server.nix
Normal 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 = [ ];
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue