feature/terminal-life-lite-mode #117
|
@ -28,10 +28,14 @@ in
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
pub-solar = {
|
pub-solar = {
|
||||||
terminal-life.enable = true;
|
|
||||||
audio.enable = lib.mkIf (!cfg.lite) true;
|
audio.enable = lib.mkIf (!cfg.lite) true;
|
||||||
crypto.enable = lib.mkIf (!cfg.lite) true;
|
crypto.enable = lib.mkIf (!cfg.lite) true;
|
||||||
devops.enable = lib.mkIf (!cfg.lite) true;
|
devops.enable = lib.mkIf (!cfg.lite) true;
|
||||||
|
|
||||||
|
terminal-life = {
|
||||||
|
enable = true;
|
||||||
|
lite = cfg.lite;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,6 +7,14 @@ in
|
||||||
{
|
{
|
||||||
options.pub-solar.terminal-life = {
|
options.pub-solar.terminal-life = {
|
||||||
enable = mkEnableOption "Life in black and white";
|
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 {
|
config = mkIf cfg.enable {
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
let
|
let
|
||||||
psCfg = config.pub-solar;
|
psCfg = config.pub-solar;
|
||||||
|
cfg = config.pub-solar.terminal-life;
|
||||||
xdg = config.home-manager.users."${psCfg.user.name}".xdg;
|
xdg = config.home-manager.users."${psCfg.user.name}".xdg;
|
||||||
|
|
||||||
preview-file = pkgs.writeShellScriptBin "preview-file" (import ./preview-file.nix pkgs);
|
preview-file = pkgs.writeShellScriptBin "preview-file" (import ./preview-file.nix pkgs);
|
||||||
|
@ -76,7 +77,7 @@ in
|
||||||
withRuby = true;
|
withRuby = true;
|
||||||
withPython3 = true;
|
withPython3 = true;
|
||||||
|
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; lib.mkIf (!cfg.lite) [
|
||||||
ccls
|
ccls
|
||||||
gopls
|
gopls
|
||||||
nodejs
|
nodejs
|
||||||
|
|
Loading…
Reference in a new issue