office to module
This commit is contained in:
parent
c115d3e220
commit
ddb5c2872c
@ -29,8 +29,6 @@
|
||||
loupe
|
||||
gimp3
|
||||
mullvad-vpn
|
||||
libreoffice-qt6-still
|
||||
hunspellDicts.fr-any
|
||||
base16-schemes
|
||||
tor
|
||||
wireshark
|
||||
|
||||
@ -12,6 +12,7 @@
|
||||
./groups
|
||||
./wm
|
||||
./de
|
||||
./office
|
||||
];
|
||||
|
||||
# Timzone and locales (same for all machines so I put it here)
|
||||
|
||||
@ -19,6 +19,7 @@ in
|
||||
librewolf.enable = true;
|
||||
stylix.enable = true;
|
||||
audio.enable = true;
|
||||
office.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@ -19,6 +19,7 @@ in
|
||||
floorp.enable = true;
|
||||
stylix.enable = true;
|
||||
audio.enable = true;
|
||||
office.enable= true;
|
||||
};
|
||||
services.logind.lidSwitch = "ignore";
|
||||
};
|
||||
|
||||
6
modules/nix/office/default.nix
Normal file
6
modules/nix/office/default.nix
Normal file
@ -0,0 +1,6 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./office.nix
|
||||
];
|
||||
}
|
||||
18
modules/nix/office/office.nix
Normal file
18
modules/nix/office/office.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user