From 5b6b430b051088a3864e23d1849fd6e132e82ab8 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Sun, 9 Jul 2023 01:36:33 +0300 Subject: [PATCH] media --- hosts/sakotop/configuration.nix | 32 ++++---------------------------- modules/default.nix | 1 + 2 files changed, 5 insertions(+), 28 deletions(-) diff --git a/hosts/sakotop/configuration.nix b/hosts/sakotop/configuration.nix index c59e3d86..aad3c505 100644 --- a/hosts/sakotop/configuration.nix +++ b/hosts/sakotop/configuration.nix @@ -48,6 +48,10 @@ }; zsh.enable = true; }; + media = { + mpd.enable = true; + ncmpcpp.enable = true; + }; }; # Enable CUPS to print documents. @@ -72,21 +76,6 @@ ]; }; -# mpd - services.mpd = { - enable = true; - # pipewire fix - user = "sako"; - musicDirectory = "/home/sako/music"; - extraConfig = builtins.readFile ../../config/mpd/mpd.conf; - startWhenNeeded = true; - }; - - # systemd fix pipewire - systemd.services.mpd.environment = { - XDG_RUNTIME_DIR = "/run/user/1000"; - }; - # garbage collection nix.gc = { automatic = true; @@ -94,19 +83,6 @@ options = "--delete-older-than 7d"; }; - - home-manager.useUserPackages = true; - home-manager.users.sako = { pkgs, ...}: { - xdg.configFile = { - ncmpcpp = { - source = ../../config/ncmpcpp; - recursive = true; - }; - }; - }; - - # List services that you want to enable: - # Enable the OpenSSH daemon. # services.openssh.enable = true; diff --git a/modules/default.nix b/modules/default.nix index 42792d16..90adbf2c 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -3,4 +3,5 @@ shell = import ./shell; hardware = import ./hardware; dev = import ./dev; + media = import ./media; }