changed onlyoffice to libreoffice

This commit is contained in:
Jakub Kropáček 2024-12-12 22:00:49 +01:00
parent c0a00df940
commit f2446ec65f
3 changed files with 34 additions and 3 deletions

View file

@ -7,11 +7,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1733168902, "lastModified": 1734011192,
"narHash": "sha256-8dupm9GfK+BowGdQd7EHK5V61nneLfr9xR6sc5vtDi0=", "narHash": "sha256-NghuiWXx6Q3gwLiudiNwDpYQ1CPEUK7J+f9dWREN8KA=",
"owner": "nix-community", "owner": "nix-community",
"repo": "disko", "repo": "disko",
"rev": "785c1e02c7e465375df971949b8dcbde9ec362e5", "rev": "0f31ad735e784315a22d9899d3ba24340ce64220",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -9,5 +9,6 @@
./tmux.nix ./tmux.nix
./zoxide.nix ./zoxide.nix
./zsh.nix ./zsh.nix
./libreoffice.nix
]; ];
} }

View file

@ -0,0 +1,30 @@
{
lib,
config,
pkgs,
...
}:
let
cfg = config.krop.hm.programs.libreoffice;
krop_cfg = config.krop.hm;
in
{
options.krop.hm.programs.libreoffice = {
enable = lib.mkOption {
type = lib.types.bool;
default = true;
example = false;
description = "Enable my libreoffice configuration";
};
};
config = lib.mkIf cfg.enable {
home.packages =
with pkgs;
[
libreoffice-qt
hunspell
hunspellDicts.cs_CZ
]
++ [ (if krop_cfg.desktop.plasma.enable then libreoffice-qt6-fresh else libreoffice-fresh) ];
};
}