From 4dee8a28ddcac7c4f19cd04f88ad9495f68a16c7 Mon Sep 17 00:00:00 2001 From: mjallen18 Date: Fri, 4 Oct 2024 09:40:22 -0500 Subject: [PATCH] fix your spotify or soemthing --- hosts/nas/configuration.nix | 14 ++++++++++++-- modules/apps/mongodb/default.nix | 3 ++- modules/apps/mongodb/options.nix | 4 ++-- modules/apps/your-spotify/default.nix | 2 ++ 4 files changed, 18 insertions(+), 5 deletions(-) diff --git a/hosts/nas/configuration.nix b/hosts/nas/configuration.nix index 9e2327a..0c8c74c 100755 --- a/hosts/nas/configuration.nix +++ b/hosts/nas/configuration.nix @@ -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; diff --git a/modules/apps/mongodb/default.nix b/modules/apps/mongodb/default.nix index 7f17ffe..c3e1fab 100644 --- a/modules/apps/mongodb/default.nix +++ b/modules/apps/mongodb/default.nix @@ -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; diff --git a/modules/apps/mongodb/options.nix b/modules/apps/mongodb/options.nix index 4917d99..dfd7c36 100644 --- a/modules/apps/mongodb/options.nix +++ b/modules/apps/mongodb/options.nix @@ -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 { diff --git a/modules/apps/your-spotify/default.nix b/modules/apps/your-spotify/default.nix index 509f4f4..54a4dcc 100644 --- a/modules/apps/your-spotify/default.nix +++ b/modules/apps/your-spotify/default.nix @@ -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"; }; };