mirror of
https://github.com/nix-community/home-manager.git
synced 2026-10-02 19:49:18 +00:00
22 lines
688 B
Nix
22 lines
688 B
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
{
|
|
programs.libreoffice = {
|
|
enable = true;
|
|
settings."/org.openoffice.Office.Common/Misc".ShowTipOfTheDay = false;
|
|
};
|
|
|
|
home.activation.loRegularConfig = lib.hm.dag.entryBefore [ "linkGeneration" ] ''
|
|
echo "Hello, World!" > ${config.xdg.configHome}/libreoffice/4/user/registrymodifications.xcu
|
|
'';
|
|
|
|
nmt.script = ''
|
|
assertLinkExists "home-files/.config/libreoffice/4/user/registrymodifications.xcu"
|
|
assertFileRegex "home-files/.config/libreoffice/4/user/registrymodifications.xcu" "<!-- Generated by Home Manager. -->"
|
|
assertFileRegex "home-files/.config/libreoffice/4/user/registrymodifications.xcu" "ooSetupLastVersion"
|
|
'';
|
|
}
|