Move MPD to home manager
This commit is contained in:
parent
2beaf963c2
commit
bcadad2420
16 changed files with 43 additions and 66 deletions
|
@ -3,6 +3,7 @@
|
|||
imports = [
|
||||
./easyeffects
|
||||
./gnome-keyring
|
||||
./mpd
|
||||
./udiskie
|
||||
];
|
||||
}
|
||||
|
|
15
modules/home/services/mpd/default.nix
Normal file
15
modules/home/services/mpd/default.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
services.mpd = {
|
||||
enable = true;
|
||||
network.startWhenNeeded = true;
|
||||
musicDirectory = "/home/jimbo/JimboNFS/Music/JimBops";
|
||||
playlistDirectory = "/home/jimbo/JimboNFS/Music/JimBops/Playlists";
|
||||
extraConfig = ''
|
||||
audio_output {
|
||||
type "pipewire"
|
||||
name "Local Pipewire"
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
|
@ -3,6 +3,7 @@
|
|||
programs.wpaperd = {
|
||||
enable = true;
|
||||
settings = {
|
||||
default.mode = "center";
|
||||
any.path = "~/.assets/wallpapers/1.png";
|
||||
"${config.displays.d2}".path = "~/.assets/wallpapers/2.png";
|
||||
"${config.displays.d3}".path = "~/.assets/wallpapers/3.png";
|
||||
|
|
|
@ -22,12 +22,15 @@
|
|||
".config/heroic"
|
||||
".config/obs-studio"
|
||||
|
||||
".local/share/mpd"
|
||||
".local/share/nvim/undo"
|
||||
".local/share/fractal"
|
||||
".local/share/PrismLauncher"
|
||||
".local/share/Steam"
|
||||
".local/share/TelegramDesktop"
|
||||
|
||||
".local/state/wireplumber"
|
||||
|
||||
{ directory = ".ssh"; mode = "0700"; }
|
||||
{ directory = ".gnupg"; mode = "0700"; }
|
||||
{ directory = ".local/share/keyrings"; mode = "0700"; }
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
./gvfs
|
||||
./keyd
|
||||
./libvirtd
|
||||
./mpd
|
||||
./portals
|
||||
./snowflake
|
||||
./ssh
|
||||
|
|
|
@ -1,25 +0,0 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
config = lib.mkIf config.system.desktop.enable {
|
||||
services.mpd = {
|
||||
enable = true;
|
||||
startWhenNeeded = true;
|
||||
user = "jimbo";
|
||||
group = "users";
|
||||
musicDirectory = "/home/jimbo/JimboNFS/Music/JimBops";
|
||||
playlistDirectory = "/home/jimbo/JimboNFS/Music/JimBops/Playlists";
|
||||
extraConfig = ''
|
||||
audio_output {
|
||||
type "pipewire"
|
||||
name "Local Pipewire"
|
||||
}
|
||||
'';
|
||||
};
|
||||
|
||||
systemd.services.mpd.environment = {
|
||||
XDG_RUNTIME_DIR = "/run/user/${toString config.users.users.jimbo.uid}";
|
||||
};
|
||||
|
||||
environment.persistence."/persist".directories = [ "/var/lib/mpd" ];
|
||||
};
|
||||
}
|
|
@ -12,7 +12,6 @@
|
|||
};
|
||||
extraPortals = with pkgs; [
|
||||
xdg-desktop-portal-gnome
|
||||
xdg-desktop-portal-hyprland
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{ config, ... }:
|
||||
{ config, lib, ... }:
|
||||
{
|
||||
services.nginx.virtualHosts."lemmy.${config.domains.jim1}" = {
|
||||
services.nginx.virtualHosts."lemmy.${config.domains.jim1}" = lib.mkIf config.services.lemmy.enable {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
};
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./synapse
|
||||
./coturn
|
||||
./element
|
||||
./slidingsync
|
||||
./synapse
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1,11 +1,5 @@
|
|||
{ pkgs, config, ... }:
|
||||
{
|
||||
imports = [
|
||||
./coturn
|
||||
./slidingsync
|
||||
./nginx
|
||||
];
|
||||
|
||||
services.matrix-synapse = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
|
|
@ -4,6 +4,5 @@
|
|||
./apparmor
|
||||
./polkit
|
||||
./privilege
|
||||
./rtprio
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
{ lib, config, ... }:
|
||||
{
|
||||
security.pam.loginLimits = lib.mkIf config.system.desktop.enable [
|
||||
{
|
||||
domain = "@users";
|
||||
item = "rtprio";
|
||||
type = "-";
|
||||
value = 1;
|
||||
}
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue