2021-11-01 20:33:21 +00:00
|
|
|
{ lib, config, ... }:
|
2021-10-26 15:30:31 +00:00
|
|
|
|
2021-11-01 20:33:21 +00:00
|
|
|
let
|
|
|
|
cfg = config.ptw.services.swaync;
|
|
|
|
in {
|
|
|
|
options.ptw.services.swaync = {
|
|
|
|
enable = lib.mkEnableOption "Configure swaync using HomeManager";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
home-manager.users."${config.ptw.system.singleUser}".xdg.configFile = {
|
|
|
|
"swaync/config.json".source = ./config.json;
|
|
|
|
"swaync/style.css".source = ./style.css;
|
|
|
|
};
|
2021-10-26 15:30:31 +00:00
|
|
|
};
|
|
|
|
}
|