add libreoffice
This commit is contained in:
parent
89fe711525
commit
6bedf302a4
4 changed files with 23 additions and 0 deletions
|
@ -20,6 +20,7 @@
|
|||
outputs.nixosModules.hardware
|
||||
outputs.nixosModules.dev
|
||||
outputs.nixosModules.media
|
||||
outputs.nixosModules.work
|
||||
outputs.nixosModules.security
|
||||
];
|
||||
|
||||
|
|
|
@ -5,4 +5,5 @@
|
|||
dev = import ./dev;
|
||||
media = import ./media;
|
||||
security = import ./security;
|
||||
work = import ./work;
|
||||
}
|
||||
|
|
5
modules/work/default.nix
Normal file
5
modules/work/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
imports = [
|
||||
./libreoffice
|
||||
];
|
||||
}
|
16
modules/work/libreoffice/default.nix
Normal file
16
modules/work/libreoffice/default.nix
Normal file
|
@ -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
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue