playerctld

This commit is contained in:
Spectre 2024-06-07 17:14:00 +02:00
parent 152c11f911
commit c003e4c44c
4 changed files with 19 additions and 8 deletions

View file

@ -5,7 +5,8 @@
./common.nix ./common.nix
./direnv.nix ./direnv.nix
./packages.nix ./packages.nix
./persist.nix # ./persist.nix
./playerctld.nix
./stylix.nix ./stylix.nix
]; ];
} }

View file

@ -33,5 +33,5 @@
lutris lutris
]; ];
in in
common; # ++ (lib.mkIf conf.gaming.enable gaming); common ++ (lib.optionals conf.gaming.enable gaming);
} }

View file

@ -1,6 +1,7 @@
{ {
lib, lib,
conf, conf,
...
}: { }: {
data = { data = {
directories = [ directories = [
@ -21,12 +22,16 @@
".cargo" ".cargo"
".config/obsidian" ".config/obsidian"
".config/spotify" ".config/spotify"
lib.mkIf (
conf.gaming.enable lib.mkIf
".local/share/PrismLauncher" conf.gaming.enable
lib.mkIf ".local/share/PrismLauncher"
conf.gaming.enable )
".local/share/Steam" (
lib.mkIf
conf.gaming.enable
".local/share/Steam"
)
".local/state/wireplumber" ".local/state/wireplumber"
".thunderbird" ".thunderbird"
]; ];

5
home/playerctld.nix Normal file
View file

@ -0,0 +1,5 @@
{...}: {
services.playerctld = {
enable = true;
};
}