This commit is contained in:
Sakooooo 2023-07-09 01:36:33 +03:00
parent 16e9da9931
commit 5b6b430b05
Signed by: sako
GPG key ID: 3FD715D87D7725E0
2 changed files with 5 additions and 28 deletions

View file

@ -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;

View file

@ -3,4 +3,5 @@
shell = import ./shell;
hardware = import ./hardware;
dev = import ./dev;
media = import ./media;
}