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

@ -229,11 +229,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1734366194, "lastModified": 1735344290,
"narHash": "sha256-vykpJ1xsdkv0j8WOVXrRFHUAdp9NXHpxdnn1F4pYgSw=", "narHash": "sha256-oJDtWPH1oJT34RJK1FSWjwX4qcGOBRkcNQPD0EbSfNM=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "80b0fdf483c5d1cb75aaad909bd390d48673857f", "rev": "613691f285dad87694c2ba1c9e6298d04736292d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -315,11 +315,11 @@
"nixpkgs": "nixpkgs_3" "nixpkgs": "nixpkgs_3"
}, },
"locked": { "locked": {
"lastModified": 1735091106, "lastModified": 1735263966,
"narHash": "sha256-EDjfstpI7/RqzF1FHhUS43o3cPin5q2OUUfs26xrVto=", "narHash": "sha256-/HP7IySllvThIeyGLQhP2Cmiv9i1YFYk5fBgY6BOxs8=",
"owner": "Infinidoge", "owner": "Infinidoge",
"repo": "nix-minecraft", "repo": "nix-minecraft",
"rev": "c4e70d41cbae819d01ca8b2c0ac1e6976fdf2abb", "rev": "e030d9dbae3804c4faef9b7cd47b879b47c3e465",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -406,11 +406,11 @@
}, },
"nixpkgs_4": { "nixpkgs_4": {
"locked": { "locked": {
"lastModified": 1734875076, "lastModified": 1735141468,
"narHash": "sha256-Pzyb+YNG5u3zP79zoi8HXYMs15Q5dfjDgwCdUI5B0nY=", "narHash": "sha256-VIAjBr1qGcEbmhLwQJD6TABppPMggzOvqFsqkDoMsAY=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "1807c2b91223227ad5599d7067a61665c52d1295", "rev": "4005c3ff7505313cbc21081776ad0ce5dfd7a3ce",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -421,11 +421,11 @@
}, },
"nixpkgs_5": { "nixpkgs_5": {
"locked": { "locked": {
"lastModified": 1734649271, "lastModified": 1735291276,
"narHash": "sha256-4EVBRhOjMDuGtMaofAIqzJbg4Ql7Ai0PSeuVZTHjyKQ=", "narHash": "sha256-NYVcA06+blsLG6wpAbSPTCyLvxD/92Hy4vlY9WxFI1M=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "d70bd19e0a38ad4790d3913bf08fcbfc9eeca507", "rev": "634fd46801442d760e09493a794c4f15db2d0cbb",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -442,11 +442,11 @@
"treefmt-nix": "treefmt-nix" "treefmt-nix": "treefmt-nix"
}, },
"locked": { "locked": {
"lastModified": 1735108957, "lastModified": 1735337462,
"narHash": "sha256-mbaC0wtoHF7msHk/URWp+a5avfT/R33R+0uzg+2p6zI=", "narHash": "sha256-B+PNIYtTmgnTV/wdA/qrYohmeBHaYrDwVAueODdvtlo=",
"owner": "nix-community", "owner": "nix-community",
"repo": "NUR", "repo": "NUR",
"rev": "76a7bc7f0cde12611fd4bd720e8d3ffd48772fe2", "rev": "538f624930cdfb852e4e3dd055f79e932d5b3c16",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -589,11 +589,11 @@
}, },
"unstable": { "unstable": {
"locked": { "locked": {
"lastModified": 1734649271, "lastModified": 1735291276,
"narHash": "sha256-4EVBRhOjMDuGtMaofAIqzJbg4Ql7Ai0PSeuVZTHjyKQ=", "narHash": "sha256-NYVcA06+blsLG6wpAbSPTCyLvxD/92Hy4vlY9WxFI1M=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "d70bd19e0a38ad4790d3913bf08fcbfc9eeca507", "rev": "634fd46801442d760e09493a794c4f15db2d0cbb",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -3,6 +3,7 @@
imports = [ imports = [
./easyeffects ./easyeffects
./gnome-keyring ./gnome-keyring
./mpd
./udiskie ./udiskie
]; ];
} }

View 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"
}
'';
};
}

View file

@ -3,6 +3,7 @@
programs.wpaperd = { programs.wpaperd = {
enable = true; enable = true;
settings = { settings = {
default.mode = "center";
any.path = "~/.assets/wallpapers/1.png"; any.path = "~/.assets/wallpapers/1.png";
"${config.displays.d2}".path = "~/.assets/wallpapers/2.png"; "${config.displays.d2}".path = "~/.assets/wallpapers/2.png";
"${config.displays.d3}".path = "~/.assets/wallpapers/3.png"; "${config.displays.d3}".path = "~/.assets/wallpapers/3.png";

View file

@ -22,12 +22,15 @@
".config/heroic" ".config/heroic"
".config/obs-studio" ".config/obs-studio"
".local/share/mpd"
".local/share/nvim/undo" ".local/share/nvim/undo"
".local/share/fractal" ".local/share/fractal"
".local/share/PrismLauncher" ".local/share/PrismLauncher"
".local/share/Steam" ".local/share/Steam"
".local/share/TelegramDesktop" ".local/share/TelegramDesktop"
".local/state/wireplumber"
{ directory = ".ssh"; mode = "0700"; } { directory = ".ssh"; mode = "0700"; }
{ directory = ".gnupg"; mode = "0700"; } { directory = ".gnupg"; mode = "0700"; }
{ directory = ".local/share/keyrings"; mode = "0700"; } { directory = ".local/share/keyrings"; mode = "0700"; }

View file

@ -7,7 +7,6 @@
./gvfs ./gvfs
./keyd ./keyd
./libvirtd ./libvirtd
./mpd
./portals ./portals
./snowflake ./snowflake
./ssh ./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; [ extraPortals = with pkgs; [
xdg-desktop-portal-gnome 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; enableACME = true;
forceSSL = true; forceSSL = true;
}; };

View file

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

View file

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

View file

@ -4,6 +4,5 @@
./apparmor ./apparmor
./polkit ./polkit
./privilege ./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;
}
];
}