media
This commit is contained in:
parent
16e9da9931
commit
5b6b430b05
2 changed files with 5 additions and 28 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -3,4 +3,5 @@
|
|||
shell = import ./shell;
|
||||
hardware = import ./hardware;
|
||||
dev = import ./dev;
|
||||
media = import ./media;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue