office to module
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./office.nix
|
||||
];
|
||||
}
|
||||
@@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user