mirror of
https://github.com/kaesaecracker/nixos-configuration.git
synced 2025-01-18 18:40:14 +01:00
add printing and libreoffice
This commit is contained in:
parent
a488df8854
commit
5cd119f65e
|
@ -12,6 +12,7 @@ in {
|
||||||
./gnome.nix
|
./gnome.nix
|
||||||
./kde.nix
|
./kde.nix
|
||||||
./gaming.nix
|
./gaming.nix
|
||||||
|
./printing.nix
|
||||||
]
|
]
|
||||||
++ lib.optionals isHomeManager [
|
++ lib.optionals isHomeManager [
|
||||||
./gnome-home.nix
|
./gnome-home.nix
|
||||||
|
@ -22,9 +23,6 @@ in {
|
||||||
|
|
||||||
config = lib.mkIf isEnabled {
|
config = lib.mkIf isEnabled {
|
||||||
services = {
|
services = {
|
||||||
# Enable CUPS to print documents.
|
|
||||||
printing.enable = true;
|
|
||||||
|
|
||||||
xserver = {
|
xserver = {
|
||||||
# Enable the X11 windowing system / wayland depending on DE
|
# Enable the X11 windowing system / wayland depending on DE
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -86,6 +84,12 @@ in {
|
||||||
environment = {
|
environment = {
|
||||||
systemPackages = with pkgs; [
|
systemPackages = with pkgs; [
|
||||||
lm_sensors
|
lm_sensors
|
||||||
|
|
||||||
|
# office
|
||||||
|
libreoffice-qt
|
||||||
|
hunspell
|
||||||
|
hunspellDicts.de-de
|
||||||
|
hunspellDicts.en-us-large
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
23
modules/desktop/printing.nix
Normal file
23
modules/desktop/printing.nix
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
isEnabled = config.my.desktop.enablePrinting;
|
||||||
|
in {
|
||||||
|
options.my.desktop.enablePrinting = lib.mkEnableOption "printing";
|
||||||
|
|
||||||
|
config = lib.mkIf isEnabled {
|
||||||
|
services = {
|
||||||
|
# Enable CUPS to print documents.
|
||||||
|
printing.enable = true;
|
||||||
|
|
||||||
|
avahi = {
|
||||||
|
enable = true; # runs the Avahi daemon
|
||||||
|
nssmdns = true; # enables the mDNS NSS plug-in
|
||||||
|
openFirewall = true; # opens the firewall for UDP port 5353
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -12,6 +12,7 @@
|
||||||
desktop = {
|
desktop = {
|
||||||
enableGnome = true;
|
enableGnome = true;
|
||||||
enableGaming = true;
|
enableGaming = true;
|
||||||
|
enablePrinting = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
desktop = {
|
desktop = {
|
||||||
enableKde = true;
|
enableKde = true;
|
||||||
enableGaming = true;
|
enableGaming = true;
|
||||||
|
enablePrinting = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue