From 6bedf302a475893ea926633b2dc6af90aa4cb200 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Tue, 5 Sep 2023 09:14:06 +0400 Subject: [PATCH] add libreoffice --- default.nix | 1 + modules/default.nix | 1 + modules/work/default.nix | 5 +++++ modules/work/libreoffice/default.nix | 16 ++++++++++++++++ 4 files changed, 23 insertions(+) create mode 100644 modules/work/default.nix create mode 100644 modules/work/libreoffice/default.nix 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 + ]; + }; +}