Compare commits
No commits in common. "c36a3f09dee81bded5256c546c64cc270c09f485" and "2a9e8e6c0372c1eacb9fd91a062acd9c657be694" have entirely different histories.
c36a3f09de
...
2a9e8e6c03
5 changed files with 1 additions and 44 deletions
|
|
@ -6,7 +6,6 @@
|
||||||
let
|
let
|
||||||
name = "fluorite";
|
name = "fluorite";
|
||||||
fqdn = "fluorite.lava.moe";
|
fqdn = "fluorite.lava.moe";
|
||||||
altfqdn = hostname: "fluorite.${hostname}.lava.moe";
|
|
||||||
subnetId = "6";
|
subnetId = "6";
|
||||||
|
|
||||||
subnet = x: "fd0d:1::${subnetId}:${toString x}";
|
subnet = x: "fd0d:1::${subnetId}:${toString x}";
|
||||||
|
|
@ -43,13 +42,6 @@
|
||||||
listenAddresses = [ "10.0.0.1" "[fd0d::1]" "100.67.1.1" ];
|
listenAddresses = [ "10.0.0.1" "[fd0d::1]" "100.67.1.1" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts."${altfqdn config.networking.hostname}" = {
|
|
||||||
useACMEHost = "lava.moe";
|
|
||||||
forceSSL = true;
|
|
||||||
locations."/".proxyPass = "http://[${client}]:5030";
|
|
||||||
listenAddresses = [ "10.0.0.1" "[fd0d::1]" "100.67.1.1" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
"d /persist/containers/${name} 755 root users"
|
"d /persist/containers/${name} 755 root users"
|
||||||
"d /persist/media/music 075 nobody users"
|
"d /persist/media/music 075 nobody users"
|
||||||
|
|
|
||||||
|
|
@ -24,10 +24,8 @@
|
||||||
tailscale
|
tailscale
|
||||||
|
|
||||||
modules.services.nginx
|
modules.services.nginx
|
||||||
modules.services.soulbeet
|
|
||||||
modules.services.syncthing
|
modules.services.syncthing
|
||||||
|
|
||||||
inputs.c-fluorite.nixosModule
|
|
||||||
inputs.c-garnet.nixosModule
|
inputs.c-garnet.nixosModule
|
||||||
|
|
||||||
./filesystem.nix
|
./filesystem.nix
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ in {
|
||||||
"/" = {
|
"/" = {
|
||||||
device = "rootfs";
|
device = "rootfs";
|
||||||
fsType = "tmpfs";
|
fsType = "tmpfs";
|
||||||
options = [ "defaults" "size=6G" "mode=755" ];
|
options = [ "defaults" "size=12G" "mode=755" ];
|
||||||
};
|
};
|
||||||
"/boot" = mkLabelMount "UEFI" "vfat";
|
"/boot" = mkLabelMount "UEFI" "vfat";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,6 @@ in {
|
||||||
./services/nginx.nix
|
./services/nginx.nix
|
||||||
./services/postgres.nix
|
./services/postgres.nix
|
||||||
./services/sonarr.nix
|
./services/sonarr.nix
|
||||||
./services/soulbeet.nix
|
|
||||||
./services/synapse.nix
|
./services/synapse.nix
|
||||||
./services/syncthing.nix
|
./services/syncthing.nix
|
||||||
./services/tmptsync.nix
|
./services/tmptsync.nix
|
||||||
|
|
|
||||||
|
|
@ -1,32 +0,0 @@
|
||||||
{ ... }:
|
|
||||||
let
|
|
||||||
dir_data = "/persist/services/soulbeet/data";
|
|
||||||
dir_downloads = "/persist/containers/fluorite/slskd/downloads";
|
|
||||||
dir_music = "/persist/media/music";
|
|
||||||
in {
|
|
||||||
systemd.tmpfiles.rules = [
|
|
||||||
"d ${dir_data} 700 root root"
|
|
||||||
"d ${dir_downloads} 755 root users"
|
|
||||||
"d ${dir_music} 075 nobody users"
|
|
||||||
];
|
|
||||||
virtualisation.oci-containers.backend = "docker";
|
|
||||||
virtualisation.oci-containers.containers = {
|
|
||||||
container-name = {
|
|
||||||
image = "docker.io/docccccc/soulbeet:latest";
|
|
||||||
autoStart = true;
|
|
||||||
ports = [ "9765:9765" ];
|
|
||||||
environment = {
|
|
||||||
DATABASE_URL = "sqlite:/data/soulbeet.db";
|
|
||||||
DOWNLOAD_PATH = "/downloads";
|
|
||||||
SECRET_KEY = "change-me-in-production";
|
|
||||||
NAVIDROME_URL = "http://navidrome:4533";
|
|
||||||
BEETS_CONFIG = "/config/config.yaml";
|
|
||||||
};
|
|
||||||
volumes = [
|
|
||||||
"${dir_data}:/data"
|
|
||||||
"${dir_downloads}:/downloads"
|
|
||||||
"${dir_music}:/music"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue