test
This commit is contained in:
@@ -68,6 +68,11 @@
|
||||
default = "hyprland-session.target";
|
||||
};
|
||||
};
|
||||
|
||||
settings = mkOption {
|
||||
type = types.attrsOf types.str;
|
||||
default = {};
|
||||
};
|
||||
};
|
||||
|
||||
config = let
|
||||
@@ -91,6 +96,8 @@
|
||||
hyprsunset
|
||||
|
||||
wf-recorder
|
||||
|
||||
self.packages.${system}.aurora-set-wallpaper
|
||||
];
|
||||
|
||||
programs.quickshell = {
|
||||
@@ -111,6 +118,10 @@
|
||||
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}" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ Singleton {
|
||||
|
||||
property string wallpaperDir: s_json.wallpaperDir
|
||||
|
||||
property string settingsDir: "/home/" + Quickshell.env("USER") + "/.config/aurora"
|
||||
property string settingsDir: Quickshell.env("SETTINGS")
|
||||
onSettingsDirChanged: reload()
|
||||
|
||||
function reload() {
|
||||
@@ -36,7 +36,7 @@ Singleton {
|
||||
|
||||
id: settings
|
||||
|
||||
path: root.settingsDir + "/settings.json"
|
||||
path: root.settingsDir
|
||||
|
||||
watchChanges: true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user