Fix streamcontroller

This commit is contained in:
DashieTM 2025-03-16 17:49:06 +01:00
parent 7c70384da2
commit b461a27228
7 changed files with 16 additions and 33 deletions

View file

@ -1,6 +1,5 @@
{
lib,
pkgs,
config,
options,
...
@ -8,11 +7,11 @@
options.mods = {
streamcontroller = {
enable = lib.mkOption {
default = true;
example = false;
default = false;
example = true;
type = lib.types.bool;
description = ''
Enables starship prompt
Enables streamcontroller
'';
};
configFilePath = lib.mkOption {
@ -31,7 +30,10 @@
programs.streamcontroller.enable = true;
}
// (lib.optionalAttrs (options ? home.file) {
home.file."var/app/com.core447.StreamController/data/pages/defaultpage.json".path = lib.mkIf (!isNull config.mods.streamcontroller.path) config.mods.streamcontroller.path;
home.file.".var/app/com.core447.StreamController/data/pages/defaultpage.json" =
lib.mkIf
(!isNull config.mods.streamcontroller.configFilePath)
{source = config.mods.streamcontroller.configFilePath;};
})
);
}