add actual
This commit is contained in:
parent
c0173e7920
commit
9e348f4bbb
3 changed files with 51 additions and 0 deletions
|
|
@ -139,6 +139,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
actual = lib.mkEnableOption "actual";
|
||||||
anubis.enable = lib.mkEnableOption "anubis";
|
anubis.enable = lib.mkEnableOption "anubis";
|
||||||
syncthing.enable = lib.mkEnableOption "syncthing";
|
syncthing.enable = lib.mkEnableOption "syncthing";
|
||||||
jellyfin.enable = lib.mkEnableOption "jellyfin";
|
jellyfin.enable = lib.mkEnableOption "jellyfin";
|
||||||
|
|
|
||||||
49
modules/nixos/services/actual.nix
Normal file
49
modules/nixos/services/actual.nix
Normal file
|
|
@ -0,0 +1,49 @@
|
||||||
|
{ config, lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
config = lib.mkMerge [
|
||||||
|
(lib.mkIf config.osbmModules.services.actual.enable {
|
||||||
|
services.actual = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
})
|
||||||
|
|
||||||
|
# actual and nginx
|
||||||
|
(lib.mkIf (config.osbmModules.services.nginx.enable && config.osbmModules.services.actual.enable) {
|
||||||
|
services.nginx.virtualHosts."actual.osbm.dev" = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://localhost:${toString config.services.actual.settings.port}";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
})
|
||||||
|
|
||||||
|
# # impermanence and immich
|
||||||
|
# (lib.mkIf
|
||||||
|
# (
|
||||||
|
# config.osbmModules.services.immich.enable
|
||||||
|
# && config.osbmModules.hardware.disko.zfs.root.impermanenceRoot
|
||||||
|
# )
|
||||||
|
# {
|
||||||
|
# environment.persistence."/persist" = {
|
||||||
|
# directories = [
|
||||||
|
# {
|
||||||
|
# directory = "/var/lib/immich";
|
||||||
|
# user = config.services.immich.user;
|
||||||
|
# group = config.services.immich.group;
|
||||||
|
# mode = "0750";
|
||||||
|
# }
|
||||||
|
# {
|
||||||
|
# directory = "/var/lib/postgresql";
|
||||||
|
# user = "postgres";
|
||||||
|
# group = "postgres";
|
||||||
|
# mode = "0750";
|
||||||
|
# }
|
||||||
|
# ];
|
||||||
|
# };
|
||||||
|
# }
|
||||||
|
# )
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./actual.nix
|
||||||
./anubis.nix
|
./anubis.nix
|
||||||
./atticd.nix
|
./atticd.nix
|
||||||
./cloudflare-dyndns.nix
|
./cloudflare-dyndns.nix
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue