fix your spotify or soemthing

This commit is contained in:
mjallen18
2024-10-04 09:40:22 -05:00
parent e8aeb7c86a
commit 4dee8a28dd
4 changed files with 18 additions and 5 deletions

View File

@@ -83,11 +83,13 @@ in
cryptsetup
clinfo
cmake
coolercontrol.coolercontrol-gui
duperemove
efibootmgr
ffmpeg
gcc
glances
gparted
htop
lm_sensors
nano
@@ -121,6 +123,10 @@ in
virt-manager.enable = true;
nix-ld.enable = true;
screen.enable = true;
coolercontrol = {
enable = true;
nvidiaSupport = true;
};
};
# Configure nixpkgs
@@ -239,9 +245,13 @@ in
# Virtualisation
virtualisation = {
docker = {
podman = {
enable = true;
enableOnBoot = true;
dockerCompat = true;
autoPrune.enable = true;
defaultNetwork.settings = {
dns_enabled = true;
};
};
libvirtd.enable = true;

View File

@@ -11,7 +11,8 @@ in
autoStart = cfg.autoStart;
image = cfg.image;
ports = [ "${cfg.port}:27017" ];
volumes = [ "${cfg.configPath}:/data/db mongodb/" ];
volumes = [ "${cfg.configPath}:/data/db" ];
extraOptions = [ "--network-alias=mongo" ];
# environmentFiles = cfg.environmentFiles;
environment = {
PUID = cfg.puid;

View File

@@ -16,12 +16,12 @@ with lib;
name = mkOption {
type = types.str;
default = "mongodb";
default = "mongo";
};
image = mkOption {
type = types.str;
default = "mongodb/mongodb-community-server";
default = "mongo";
};
configPath = mkOption {

View File

@@ -13,6 +13,7 @@ in
image = cfg.imageServer;
volumes = [ "${cfg.configPath}:/root/.your-spotify" ];
ports = [ "${cfg.portServer}:8080" ];
dependsOn = [ "mongo" ];
environment = {
PUID = cfg.puid;
PGID = cfg.pgid;
@@ -21,6 +22,7 @@ in
CLIENT_ENDPOINT = "http://10.0.1.18:${cfg.portWeb}";
SPOTIFY_PUBLIC = "e270589d72a6494680a17d325af8670d";
SPOTIFY_SECRET = "423cb7b69fe8486e89eccd01e0c22924";
MONGO_ENDPOINT = "mongodb://10.0.1.18:27017";
};
};