feature/terminal-life-lite-mode #117

Merged
hensoko merged 2 commits from refs/pull/117/head into main 2022-08-14 15:17:36 +00:00
2 changed files with 10 additions and 1 deletions
Showing only changes of commit 20fbafb269 - Show all commits

View file

@ -7,6 +7,14 @@ in
{
options.pub-solar.terminal-life = {
enable = mkEnableOption "Life in black and white";
lite = mkOption {
description = ''
Enable a lite edition of terminal-life with less modules and a reduced package set.
'';
default = false;
type = types.bool;
};
};
config = mkIf cfg.enable {

View file

@ -1,6 +1,7 @@
{ config, pkgs, ... }:
let
psCfg = config.pub-solar;
cfg = config.pub-solar.terminal-life;
xdg = config.home-manager.users."${psCfg.user.name}".xdg;
preview-file = pkgs.writeShellScriptBin "preview-file" (import ./preview-file.nix pkgs);
@ -76,7 +77,7 @@ in
withRuby = true;
withPython3 = true;
extraPackages = with pkgs; [
extraPackages = with pkgs; lib.mkIf (!cfg.lite) [
ccls
gopls
nodejs