39 lines
794 B
Nix
39 lines
794 B
Nix
|
{
|
||
|
config,
|
||
|
lib,
|
||
|
pkgs,
|
||
|
...
|
||
|
}:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
let
|
||
|
cfg = config.custom.programs.clipse;
|
||
|
in
|
||
|
{
|
||
|
options.custom.programs.clipse.enable = mkOption { default = false; };
|
||
|
|
||
|
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"
|
||
|
}
|
||
|
'';
|
||
|
};
|
||
|
};
|
||
|
}
|