Compare commits

...

3 commits

Author SHA1 Message Date
Bruno BELANYI ed456c999d modules: system: remove 'media'
All checks were successful
continuous-integration/drone/push Build is passing
It was not the idiomatic way to do this.
2021-09-15 16:10:06 +02:00
Bruno BELANYI ad848ef89d pkgs: make use of scoping
This is the way to make sure `callPackage` picks up my custom packages
to be used in the set.
2021-09-15 15:33:18 +02:00
Bruno BELANYI 680d0c9f37 home: gdb: add nix store to safe path
For now, the nix store path is hard-coded rather than substituted.

This is useful for pretty-printing C++ types compiled with a different
C++ library from my gdb.
2021-09-03 17:34:39 +02:00
10 changed files with 22 additions and 23 deletions

View file

@ -20,3 +20,5 @@ 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

View file

@ -37,6 +37,9 @@ in
}; };
}; };
# Set-up media group
users.groups.media = { };
my.services.nginx.virtualHosts = [ my.services.nginx.virtualHosts = [
{ {
subdomain = "library"; subdomain = "library";

View file

@ -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";

View file

@ -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" ];

View file

@ -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 = { };
}; };
} }

View file

@ -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";

View file

@ -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 = [

View file

@ -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

View file

@ -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 { };
}

View file

@ -1,5 +1,5 @@
{ pkgs }: { pkgs }:
rec { pkgs.lib.makeScope pkgs.newScope (pkgs: {
bw-pass = pkgs.callPackage ./bw-pass { }; bw-pass = pkgs.callPackage ./bw-pass { };
comma = pkgs.callPackage ./comma { }; comma = pkgs.callPackage ./comma { };
@ -24,9 +24,7 @@ rec {
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 { };
} })