modules: system: remove 'media'
It was not the idiomatic way to do this.
This commit is contained in:
parent
8c0b70dcb5
commit
4ccf549e58
|
@ -37,6 +37,9 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Set-up media group
|
||||||
|
users.groups.media = { };
|
||||||
|
|
||||||
my.services.nginx.virtualHosts = [
|
my.services.nginx.virtualHosts = [
|
||||||
{
|
{
|
||||||
subdomain = "library";
|
subdomain = "library";
|
||||||
|
|
|
@ -14,6 +14,9 @@ in
|
||||||
group = "media";
|
group = "media";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Set-up media group
|
||||||
|
users.groups.media = { };
|
||||||
|
|
||||||
my.services.nginx.virtualHosts = [
|
my.services.nginx.virtualHosts = [
|
||||||
{
|
{
|
||||||
subdomain = "jellyfin";
|
subdomain = "jellyfin";
|
||||||
|
|
|
@ -93,6 +93,9 @@ in
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Set-up media group
|
||||||
|
users.groups.media = { };
|
||||||
|
|
||||||
systemd.services.paperless-ng-server = {
|
systemd.services.paperless-ng-server = {
|
||||||
# Make sure the DB is available
|
# Make sure the DB is available
|
||||||
after = [ "postgresql.service" ];
|
after = [ "postgresql.service" ];
|
||||||
|
|
|
@ -32,5 +32,7 @@ in
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
services = managers;
|
services = managers;
|
||||||
my.services.nginx.virtualHosts = redirections;
|
my.services.nginx.virtualHosts = redirections;
|
||||||
|
# Set-up media group
|
||||||
|
users.groups.media = { };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,6 +15,9 @@ in
|
||||||
group = "media";
|
group = "media";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Set-up media group
|
||||||
|
users.groups.media = { };
|
||||||
|
|
||||||
my.services.nginx.virtualHosts = [
|
my.services.nginx.virtualHosts = [
|
||||||
{
|
{
|
||||||
subdomain = "sabnzbd";
|
subdomain = "sabnzbd";
|
||||||
|
|
|
@ -72,6 +72,9 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Set-up media group
|
||||||
|
users.groups.media = { };
|
||||||
|
|
||||||
# Default transmission webui, I prefer combustion but its development
|
# Default transmission webui, I prefer combustion but its development
|
||||||
# seems to have stalled
|
# seems to have stalled
|
||||||
my.services.nginx.virtualHosts = [
|
my.services.nginx.virtualHosts = [
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
./boot.nix
|
./boot.nix
|
||||||
./documentation.nix
|
./documentation.nix
|
||||||
./language.nix
|
./language.nix
|
||||||
./media.nix
|
|
||||||
./nix.nix
|
./nix.nix
|
||||||
./packages.nix
|
./packages.nix
|
||||||
./users.nix
|
./users.nix
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
# Abstracting away the need for a common 'media' group
|
|
||||||
|
|
||||||
{ config, lib, ... }:
|
|
||||||
let
|
|
||||||
mediaServices = with config.my.services; [
|
|
||||||
calibre-web
|
|
||||||
jellyfin
|
|
||||||
paperless
|
|
||||||
pirate
|
|
||||||
sabnzbd
|
|
||||||
transmission
|
|
||||||
];
|
|
||||||
needed = builtins.any (service: service.enable) mediaServices;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
config.users.groups.media = lib.mkIf needed { };
|
|
||||||
}
|
|
Loading…
Reference in a new issue