stylix, formatting

This commit is contained in:
tristan 2023-12-11 09:26:41 +00:00
parent d3649cf6e2
commit 3409811d55
13 changed files with 376 additions and 166 deletions

View file

@ -6,7 +6,7 @@ in
{
options.roles.mpd = {
enable = mkEnableOption "setup mpd client";
host = mkOption {default = "music.local";};
host = mkOption { default = "192.168.1.2"; };
};
config = mkIf cfg.enable {
@ -27,6 +27,21 @@ in
enable = true;
mpd.host = cfg.host;
};
programs.waybar.settings.mainBar.mpd.server = cfg.host;
systemd.user.services = {
snapclient = {
Unit = {
Description = "Snapclient";
};
Service = {
ExecStart = "${pkgs.snapcast}/bin/snapclient -h ${cfg.host}";
};
Install = {
WantedBy = [ "graphical-session.target" ];
};
};
};
}];
};
}