1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 11:39:46 +01:00
home-manager/tests/modules/programs/kitty/theme-to-themeFile.nix
alejandro-angulo ecaed80b18
kitty: remove IFD
With this change the theme check happens at activation time. An
integration test is also added to verify the functionality.

Fixes #5110
2024-09-20 09:02:48 +02:00

24 lines
779 B
Nix

{ config, lib, pkgs, options, ... }: {
config = {
programs.kitty = {
enable = true;
theme = "Space Gray Eighties";
};
test.stubs.kitty = { };
test.asserts.warnings.enable = true;
test.asserts.warnings.expected = [
("The option `programs.kitty.theme' defined in ${
lib.showFiles options.programs.kitty.theme.files
} has been changed to `programs.kitty.themeFile' that has a different"
+ " type. Please read `programs.kitty.themeFile' documentation and"
+ " update your configuration accordingly.")
];
nmt.script = ''
assertFileExists home-files/.config/kitty/kitty.conf
assertFileRegex home-files/.config/kitty/kitty.conf "^include .*themes/SpaceGray_Eighties\.conf$"
'';
};
}