Move MPD to home manager

This commit is contained in:
Jimbo 2024-12-29 09:47:44 -05:00
parent 2beaf963c2
commit bcadad2420
16 changed files with 43 additions and 66 deletions

View file

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

View file

@ -7,7 +7,6 @@
./gvfs
./keyd
./libvirtd
./mpd
./portals
./snowflake
./ssh

View file

@ -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" ];
};
}

View file

@ -12,7 +12,6 @@
};
extraPortals = with pkgs; [
xdg-desktop-portal-gnome
xdg-desktop-portal-hyprland
];
};
};

View file

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

View file

@ -1,7 +1,9 @@
{ ... }:
{
imports = [
./synapse
./coturn
./element
./slidingsync
./synapse
];
}

View file

@ -1,11 +1,5 @@
{ pkgs, config, ... }:
{
imports = [
./coturn
./slidingsync
./nginx
];
services.matrix-synapse = {
enable = true;
settings = {

View file

@ -4,6 +4,5 @@
./apparmor
./polkit
./privilege
./rtprio
];
}

View file

@ -1,11 +0,0 @@
{ lib, config, ... }:
{
security.pam.loginLimits = lib.mkIf config.system.desktop.enable [
{
domain = "@users";
item = "rtprio";
type = "-";
value = 1;
}
];
}