mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 14:01:34 +01:00
Move libreoffice stuff into a module
This commit is contained in:
parent
8593e7dae3
commit
a176c88b5d
2 changed files with 21 additions and 7 deletions
18
modules/home/programs/libreoffice.nix
Normal file
18
modules/home/programs/libreoffice.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
options.custom.programs.libreoffice.enable = lib.mkEnableOption "";
|
||||||
|
|
||||||
|
config = lib.mkIf config.custom.programs.libreoffice.enable {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
libreoffice
|
||||||
|
hunspell
|
||||||
|
hunspellDicts.de_DE
|
||||||
|
hunspellDicts.en_US
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -9,10 +9,11 @@
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
shell.zsh.enable = true;
|
shell.zsh.enable = true;
|
||||||
kitty.enable = true;
|
|
||||||
firefox.enable = true;
|
|
||||||
git.enable = true;
|
git.enable = true;
|
||||||
|
kitty.enable = true;
|
||||||
vscode.enable = true;
|
vscode.enable = true;
|
||||||
|
firefox.enable = true;
|
||||||
|
libreoffice.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -27,11 +28,6 @@
|
||||||
pkgs.anki
|
pkgs.anki
|
||||||
pkgs.discord
|
pkgs.discord
|
||||||
|
|
||||||
pkgs.libreoffice
|
|
||||||
pkgs.hunspell
|
|
||||||
pkgs.hunspellDicts.de_DE
|
|
||||||
pkgs.hunspellDicts.en_US
|
|
||||||
|
|
||||||
pkgs.corefonts
|
pkgs.corefonts
|
||||||
pkgs.roboto
|
pkgs.roboto
|
||||||
pkgs.open-sans
|
pkgs.open-sans
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue