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
-2
View File
@@ -29,8 +29,6 @@
loupe loupe
gimp3 gimp3
mullvad-vpn mullvad-vpn
libreoffice-qt6-still
hunspellDicts.fr-any
base16-schemes base16-schemes
tor tor
wireshark wireshark
+1
View File
@@ -12,6 +12,7 @@
./groups ./groups
./wm ./wm
./de ./de
./office
]; ];
# Timzone and locales (same for all machines so I put it here) # Timzone and locales (same for all machines so I put it here)
+1
View File
@@ -19,6 +19,7 @@ in
librewolf.enable = true; librewolf.enable = true;
stylix.enable = true; stylix.enable = true;
audio.enable = true; audio.enable = true;
office.enable = true;
}; };
}; };
} }
+1
View File
@@ -19,6 +19,7 @@ in
floorp.enable = true; floorp.enable = true;
stylix.enable = true; stylix.enable = true;
audio.enable = true; audio.enable = true;
office.enable= true;
}; };
services.logind.lidSwitch = "ignore"; services.logind.lidSwitch = "ignore";
}; };
+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
];
};
}