1
1
Fork 0
nixos/options/custom/programs/clipse.nix
Myned ab485dec35
nix: format with alejandra
Signed-off-by: Myned <dev@bjork.tech>
2024-09-12 20:50:53 -05:00

34 lines
790 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"
}
'';
};
};
}