Add libreoffice module
This commit is contained in:
parent
8815dc84f4
commit
89f89569ad
@ -33,6 +33,7 @@ with lib.my;
|
|||||||
raster.enable = true;
|
raster.enable = true;
|
||||||
vector.enable = true;
|
vector.enable = true;
|
||||||
};
|
};
|
||||||
|
office.libreoffice.enable = true;
|
||||||
};
|
};
|
||||||
dev = {
|
dev = {
|
||||||
node.enable = true;
|
node.enable = true;
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
./desktop/gaming/steam.nix
|
./desktop/gaming/steam.nix
|
||||||
./desktop/media/graphics.nix
|
./desktop/media/graphics.nix
|
||||||
./desktop/media/recording.nix
|
./desktop/media/recording.nix
|
||||||
|
./desktop/office/libreoffice.nix
|
||||||
./dev/cc.nix
|
./dev/cc.nix
|
||||||
./dev/java.nix
|
./dev/java.nix
|
||||||
./dev/lua.nix
|
./dev/lua.nix
|
||||||
|
16
modules/desktop/office/libreoffice.nix
Normal file
16
modules/desktop/office/libreoffice.nix
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
with lib.my;
|
||||||
|
let cfg = config.modules.desktop.office.libreoffice;
|
||||||
|
in {
|
||||||
|
options.modules.desktop.office.libreoffice = {
|
||||||
|
enable = mkBoolOpt false;
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
user.packages = with pkgs; [
|
||||||
|
libreoffice
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user