office to module
This commit is contained in:
parent
c115d3e220
commit
ddb5c2872c
@ -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
|
||||||
|
|||||||
@ -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)
|
||||||
|
|||||||
@ -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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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
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