clipse: use rfc 042 style settings
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user