office to module

This commit is contained in:
smayzy
2025-07-09 13:18:40 +02:00
parent c115d3e220
commit ddb5c2872c
6 changed files with 27 additions and 2 deletions
+6
View File
@@ -0,0 +1,6 @@
{ lib, config, pkgs, ... }:
{
imports = [
./office.nix
];
}
+18
View File
@@ -0,0 +1,18 @@
{ lib, config, pkgs, ... }:
let
inherit (lib) mkIf mkOption types;
in
{
options.smayzy.office.enable = mkOption {
type = types.bool;
default = false;
description = "office";
};
config = mkIf config.smayzy.office.enable {
environment.systemPackages = with pkgs; [
libreoffice-qt6-still
hunspellDicts.fr-any
];
};
}