add libreoffice

This commit is contained in:
Sakooooo 2023-09-05 09:14:06 +04:00
parent 89fe711525
commit 6bedf302a4
Signed by: sako
GPG key ID: 3FD715D87D7725E0
4 changed files with 23 additions and 0 deletions

View file

@ -20,6 +20,7 @@
outputs.nixosModules.hardware
outputs.nixosModules.dev
outputs.nixosModules.media
outputs.nixosModules.work
outputs.nixosModules.security
];

View file

@ -5,4 +5,5 @@
dev = import ./dev;
media = import ./media;
security = import ./security;
work = import ./work;
}

5
modules/work/default.nix Normal file
View file

@ -0,0 +1,5 @@
{
imports = [
./libreoffice
];
}

View file

@ -0,0 +1,16 @@
{ outputs, options, config, lib, pkgs, ...}:
with lib;
let
cfg = config.modules.work.libreoffice;
in
{
options.modules.work.libreoffice = {
enable = mkEnableOption false;
};
config = mkIf cfg.enable {
users.users.sako.packages = with pkgs; [
libreoffice
];
};
}