2024-09-09 00:22:14 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
2024-09-13 01:50:53 +00:00
|
|
|
with lib; let
|
2024-09-09 00:22:14 +00:00
|
|
|
cfg = config.custom.programs.clipse;
|
2024-09-13 01:50:53 +00:00
|
|
|
in {
|
|
|
|
options.custom.programs.clipse.enable = mkOption {default = false;};
|
2024-09-09 00:22:14 +00:00
|
|
|
|
|
|
|
config = {
|
|
|
|
# https://github.com/savedra1/clipse
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
clipse
|
|
|
|
wl-clipboard
|
|
|
|
xclip
|
|
|
|
];
|
|
|
|
|
|
|
|
home-manager.users.${config.custom.username} = mkIf cfg.enable {
|
|
|
|
# https://github.com/savedra1/clipse?tab=readme-ov-file#configuration
|
|
|
|
home.file.".config/clipse/config.json".text = ''
|
|
|
|
{
|
|
|
|
"historyFile": "clipboard_history.json",
|
|
|
|
"maxHistory": 100,
|
|
|
|
"allowDuplicates": false,
|
|
|
|
"themeFile": "custom_theme.json",
|
|
|
|
"tempDir": "tmp_files",
|
|
|
|
"logFile": "clipse.log"
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|