diff --git a/default.nix b/default.nix index bd1dbe60..42c4ec25 100644 --- a/default.nix +++ b/default.nix @@ -20,6 +20,7 @@ outputs.nixosModules.hardware outputs.nixosModules.dev outputs.nixosModules.media + outputs.nixosModules.work outputs.nixosModules.security ]; diff --git a/modules/default.nix b/modules/default.nix index cb8e1af5..cac0a26a 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -5,4 +5,5 @@ dev = import ./dev; media = import ./media; security = import ./security; + work = import ./work; } diff --git a/modules/work/default.nix b/modules/work/default.nix new file mode 100644 index 00000000..991cb32f --- /dev/null +++ b/modules/work/default.nix @@ -0,0 +1,5 @@ +{ + imports = [ + ./libreoffice + ]; +} diff --git a/modules/work/libreoffice/default.nix b/modules/work/libreoffice/default.nix new file mode 100644 index 00000000..1ae1122e --- /dev/null +++ b/modules/work/libreoffice/default.nix @@ -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 + ]; + }; +}