summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Van Doorn <nick@nvandoorn.com>2026-06-10 08:32:26 -0700
committerNick Van Doorn <nick@nvandoorn.com>2026-06-10 08:34:38 -0700
commit5ba6b875dca845da5aaf00cc6a48dd75cee86856 (patch)
tree461d14e91d308f900005385d8b09bcf1d21336ae
parent0f1a3d928a7c3768ec7fbdcac28f3c1a9165e946 (diff)
Update config
sorry this is as specific as I can be right now
-rw-r--r--configuration.nix85
1 files changed, 38 insertions, 47 deletions
diff --git a/configuration.nix b/configuration.nix
index 6b7f3fe..49cc883 100644
--- a/configuration.nix
+++ b/configuration.nix
@@ -66,7 +66,6 @@
extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
};
-
users.users.casey = {
isNormalUser = true;
};
@@ -78,7 +77,7 @@
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
- pkgs.nixfmt-rfc-style
+ nixfmt
dos2unix
tailscale
python3
@@ -260,7 +259,7 @@
virtualHost = "vandoorn-server.local";
};
gitHttpBackend = {
- checkExportOkFiles = false;
+ checkExportOkFiles = false;
};
settings = {
root-title = "nvd-git";
@@ -270,7 +269,6 @@
extraConfig = "enable-http-clone=1";
};
-
services.tailscale.enable = true;
programs.msmtp = {
@@ -376,23 +374,23 @@
group = "git";
};
- #systemd.services.deemix = {
- # description = "Deemix";
- # after = [ "network.target" ];
- # wantedBy = [ "multi-user.target" ];
+ systemd.services.deemix = {
+ description = "Deemix";
+ after = [ "network.target" ];
+ wantedBy = [ "multi-user.target" ];
- # serviceConfig = {
- # Type = "simple";
- # User = "deemix";
- # Group = "media";
- # ExecStart = "${pkgs.nodejs_22}/bin/node ${
- # pkgs.callPackage ./deemix.nix { }
- # }/server/dist/app.js --host 0.0.0.0";
- # Environment = "DEEMIX_DATA_DIR=/var/lib/deemix/";
- # Restart = "on-failure";
- # UMask = "0002";
- # };
- #};
+ serviceConfig = {
+ Type = "simple";
+ User = "deemix";
+ Group = "media";
+ ExecStart = "${pkgs.nodejs_22}/bin/node ${
+ pkgs.callPackage ./deemix.nix { }
+ }/server/dist/app.js --host 0.0.0.0";
+ Environment = "DEEMIX_DATA_DIR=/var/lib/deemix/";
+ Restart = "on-failure";
+ UMask = "0002";
+ };
+ };
fileSystems."/export/home" = {
device = "pool/home";
@@ -408,21 +406,23 @@
services.mpd = {
enable = true;
- musicDirectory = "/mnt/pool/media/libraries/music";
-
- network.listenAddress = "any";
- #extraConfig = ''
- # audio_output {
- # type "alsa"
- # name "snapcast"
- # device "hw:0,0,0"
- # format "48000:16:2"
- # enabled "yes"
- # mixer_type "software"
- # }
- #'';
+ openFirewall = true;
+ settings = {
+ bind_to_address = "0.0.0.0";
+ music_directory = "/mnt/pool/media/libraries/music";
+ audio_output = [
+ {
+ type = "alsa";
+ name = "snapcast";
+ device = "hw:0,0,0";
+ format = "48000:16:2";
+ enabled = "yes";
+ mixer_type = "software";
+ }
+ ];
+ };
};
-
+
services.mympd = {
enable = true;
settings = {
@@ -435,22 +435,13 @@
#services.snapserver = {
# enable = true;
- # streams = {
+ # settings = {
# mpd = {
# type = "alsa";
- # location = "";
- # sampleFormat = "48000:16:2";
- # query = {
- # device = "hw:0,1,0";
- # };
- # };
- # line_in = {
- # type = "alsa";
- # location = "";
+ # location = "hw:0,1,0";
+ # source = "hw:0,1,0";
# sampleFormat = "48000:16:2";
- # query = {
- # device = "hw:1,0,0";
- # };
+ # device = "hw:0,1,0";
# };
# };
#};