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

View File

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

View File

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

View File

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