Add beatific.extraPrograms
This is partly a way to keep notes on useful software that I might otherwise forget about
This commit is contained in:
parent
96d6e73346
commit
a62cb2bab1
|
@ -50,6 +50,7 @@
|
||||||
hardware.opengl.enable = true;
|
hardware.opengl.enable = true;
|
||||||
hardware.opengl.driSupport32Bit = true;
|
hardware.opengl.driSupport32Bit = true;
|
||||||
|
|
||||||
|
beatific.extraPrograms = true;
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
firefox
|
firefox
|
||||||
libreoffice
|
libreoffice
|
||||||
|
|
|
@ -26,6 +26,12 @@ in {
|
||||||
default = false;
|
default = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extraPrograms = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
description = "Additional default programs";
|
||||||
|
default = false;
|
||||||
|
};
|
||||||
|
|
||||||
# Groups of related defaults can be disabled by flipping off the switches here:
|
# Groups of related defaults can be disabled by flipping off the switches here:
|
||||||
# beatific.defaults.${category} = false;
|
# beatific.defaults.${category} = false;
|
||||||
# They default to true because the point is to do these things by default.
|
# They default to true because the point is to do these things by default.
|
||||||
|
@ -107,6 +113,14 @@ in {
|
||||||
environment.variables.EDITOR = mkOverride 999 "vim";
|
environment.variables.EDITOR = mkOverride 999 "vim";
|
||||||
})
|
})
|
||||||
|
|
||||||
|
(mkIf cfg.extraPrograms {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
calibre # provides ebook-convert
|
||||||
|
imagemagick # image convertion cli
|
||||||
|
tesseract # OCR engine
|
||||||
|
];
|
||||||
|
})
|
||||||
|
|
||||||
(mkIf cfg.defaults.ssh {
|
(mkIf cfg.defaults.ssh {
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
services.openssh.banner = let
|
services.openssh.banner = let
|
||||||
|
|
Loading…
Reference in New Issue