cleaning up old files, only a bit more to go
This commit is contained in:
parent
2b71c1bb8e
commit
975f97edee
13 changed files with 90 additions and 339 deletions
28
modules/desktop/applications/office.nix
Normal file
28
modules/desktop/applications/office.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ options, config, lib, pkgs, ... }:
|
||||
let
|
||||
inherit (lib.modules) mkIf mkForce mkMerge;
|
||||
|
||||
cfg = config.modules.desktop.applications.steam;
|
||||
desktop = config.modules.desktop;
|
||||
in
|
||||
{
|
||||
options.modules.desktop.applications.steam = let
|
||||
inherit (lib.options) mkEnableOption;
|
||||
in {
|
||||
enable = mkEnableOption "Enable office suite (only-office)";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable
|
||||
{
|
||||
user.packages = attrValues {
|
||||
inherit (pkgs) onlyoffice-bin;
|
||||
};
|
||||
|
||||
nixpkgs.config.allowUnfreePredicate = pkg:
|
||||
builtins.elem (lib.getName pkg) [ "corefonts" ];
|
||||
|
||||
fonts.packages = with pkgs; [
|
||||
corefonts
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue