test
This commit is contained in:
@@ -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}" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user