clipse: use rfc 042 style settings

This commit is contained in:
isabel
2026-07-03 12:26:19 -05:00
committed by Austin Horstman
parent a4d410db95
commit 3a60d513d0
4 changed files with 76 additions and 77 deletions
@@ -0,0 +1,9 @@
{
"allowDuplicates": true,
"imageDisplay": {
"scaleX": 9,
"scaleY": 9,
"type": "kitty"
},
"maxHistory": 1001
}
@@ -0,0 +1,31 @@
{
services.clipse = {
enable = true;
settings = {
allowDuplicates = true;
imageDisplay = {
type = "kitty";
scaleX = 9;
scaleY = 9;
};
};
# Legacy option renamed to `services.clipse.settings.maxHistory`.
historySize = 1001;
};
test = {
stubs.clipse = { };
asserts.warnings.expected = [
"The option `services.clipse.historySize' defined in `${toString ./clipse-settings.nix}' has been renamed to `services.clipse.settings.maxHistory'."
];
};
nmt.script = ''
configFile=home-files/.config/clipse/config.json
assertFileExists "$configFile"
assertFileContent "$configFile" ${./clipse-settings-expected.json}
'';
}
@@ -1,5 +1,6 @@
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
clipse-settings = ./clipse-settings.nix;
clipse-sway-session-target = ./clipse-sway-session-target.nix;
}