finally add stuff to directories
This commit is contained in:
parent
963d76de2f
commit
7e7ed4aea4
3 changed files with 23 additions and 15 deletions
|
@ -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
6
modules/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{ config, pkgs, lib, ...}:
|
||||
{
|
||||
imports = [
|
||||
./mpd
|
||||
];
|
||||
}
|
|
@ -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";
|
||||
};
|
||||
|
||||
}
|
Loading…
Reference in a new issue