Compare commits
No commits in common. "ed456c999dd1b5bdd7626edff2d11c252e7c8b4d" and "9a061086039a75046f3b025aa9dc6ebc4b9aa0c0" have entirely different histories.
ed456c999d
...
9a06108603
|
@ -20,5 +20,3 @@ set auto-load python-scripts
|
||||||
|
|
||||||
# Allow autoloading project-local .gdbinit files
|
# Allow autoloading project-local .gdbinit files
|
||||||
set auto-load safe-path ~/git/
|
set auto-load safe-path ~/git/
|
||||||
# Allow autoloading from the Nix store
|
|
||||||
set auto-load safe-path /nix/store
|
|
||||||
|
|
|
@ -37,9 +37,6 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Set-up media group
|
|
||||||
users.groups.media = { };
|
|
||||||
|
|
||||||
my.services.nginx.virtualHosts = [
|
my.services.nginx.virtualHosts = [
|
||||||
{
|
{
|
||||||
subdomain = "library";
|
subdomain = "library";
|
||||||
|
|
|
@ -14,9 +14,6 @@ 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,9 +93,6 @@ 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,7 +32,5 @@ 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,9 +15,6 @@ 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,9 +72,6 @@ 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,6 +6,7 @@
|
||||||
./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
|
||||||
|
|
17
modules/system/media.nix
Normal file
17
modules/system/media.nix
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
# 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 { };
|
||||||
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
{ pkgs }:
|
{ pkgs }:
|
||||||
pkgs.lib.makeScope pkgs.newScope (pkgs: {
|
rec {
|
||||||
bw-pass = pkgs.callPackage ./bw-pass { };
|
bw-pass = pkgs.callPackage ./bw-pass { };
|
||||||
|
|
||||||
comma = pkgs.callPackage ./comma { };
|
comma = pkgs.callPackage ./comma { };
|
||||||
|
@ -24,7 +24,9 @@ pkgs.lib.makeScope pkgs.newScope (pkgs: {
|
||||||
|
|
||||||
volantes-cursors = pkgs.callPackage ./volantes-cursors { };
|
volantes-cursors = pkgs.callPackage ./volantes-cursors { };
|
||||||
|
|
||||||
unbound-zones-adblock = pkgs.callPackage ./unbound-zones-adblock { };
|
unbound-zones-adblock = pkgs.callPackage ./unbound-zones-adblock {
|
||||||
|
inherit unified-hosts-lists;
|
||||||
|
};
|
||||||
|
|
||||||
unified-hosts-lists = pkgs.callPackage ./unified-hosts-lists { };
|
unified-hosts-lists = pkgs.callPackage ./unified-hosts-lists { };
|
||||||
})
|
}
|
||||||
|
|
Loading…
Reference in a new issue