This commit is contained in:
2026-04-10 13:12:00 -05:00
parent bd134cad26
commit b97e9dc547
2 changed files with 13 additions and 2 deletions

View File

@@ -68,6 +68,11 @@
default = "hyprland-session.target"; default = "hyprland-session.target";
}; };
}; };
settings = mkOption {
type = types.attrsOf types.str;
default = {};
};
}; };
config = let config = let
@@ -91,6 +96,8 @@
hyprsunset hyprsunset
wf-recorder wf-recorder
self.packages.${system}.aurora-set-wallpaper
]; ];
programs.quickshell = { programs.quickshell = {
@@ -111,6 +118,10 @@
target = cfg.systemd.target; target = cfg.systemd.target;
}; };
}; };
home.file.".config/aurora/settings.json".text = builtins.toJSON cfg.settings;
systemd.user.services.quickshell.Service.Environment = [ "SETTINGS=${config.home.homeDirectory}/${config.home.file.".config/aurora/settings.json".target}" ];
}; };
}; };
} }

View File

@@ -19,7 +19,7 @@ Singleton {
property string wallpaperDir: s_json.wallpaperDir property string wallpaperDir: s_json.wallpaperDir
property string settingsDir: "/home/" + Quickshell.env("USER") + "/.config/aurora" property string settingsDir: Quickshell.env("SETTINGS")
onSettingsDirChanged: reload() onSettingsDirChanged: reload()
function reload() { function reload() {
@@ -36,7 +36,7 @@ Singleton {
id: settings id: settings
path: root.settingsDir + "/settings.json" path: root.settingsDir
watchChanges: true watchChanges: true