finally add stuff to directories

This commit is contained in:
Sakooooo 2023-07-05 17:17:24 +03:00
parent 963d76de2f
commit 7e7ed4aea4
Signed by: sako
GPG key ID: 3FD715D87D7725E0
3 changed files with 23 additions and 15 deletions

View file

@ -7,6 +7,7 @@
[ # Include the results of the hardware scan.
./hardware-configuration.nix
<home-manager/nixos>
./modules
];
# grub (mount efi partition to /boot/efi)
@ -178,21 +179,6 @@
(final: prev: { qutebrowser = prev.qutebrowser.override { enableWideVine = true; }; })
];
# TODO(sako):: replace this with mopidy for jellyifn support
services.mpd = {
# pipewire fix
user = "sako";
enable = true;
musicDirectory = "/home/sako/music";
extraConfig = builtins.readFile config/mpd/mpd.conf;
startWhenNeeded = true;
};
# mpd fix
systemd.services.mpd.environment = {
XDG_RUNTIME_DIR = "/run/user/1000";
};
# garbage collection
nix.gc = {
automatic = true;

6
modules/default.nix Normal file
View file

@ -0,0 +1,6 @@
{ config, pkgs, lib, ...}:
{
imports = [
./mpd
];
}

View file

@ -0,0 +1,16 @@
{ config, pkgs, lib, ...}:
{
services.mpd = {
enable = true;
# pipewire fix
user = "sako";
musicDirectory = "/home/sako/music";
extraConfig = builtins.readFile ../../config/mpd/mpd.conf;
};
# systemd fix pipewire
systemd.services.mpd.environment = {
XDG_RUNTIME_DIR = "/run/user/1000";
};
}