Move some packages from full to default set, move options for modules to

default.nix
This commit is contained in:
Hendrik Sokolowski 2022-08-14 15:11:01 +02:00
parent 4190818304
commit 7785744d73
3 changed files with 17 additions and 25 deletions

View file

@ -17,11 +17,15 @@ in
./services.nix ./services.nix
]; ];
pub-solar.terminal-life.enable = true;
pub-solar.audio.enable = lib.mkIf (!cfg.lite) true;
pub-solar.crypto.enable = lib.mkIf (!cfg.lite) true;
pub-solar.devops.enable = lib.mkIf (!cfg.lite) true;
options.pub-solar.core = { options.pub-solar.core = {
lite-core-active = mkOption { lite = mkOption {
description = '' description = ''
Whether the node should run as a server or agent. Enable a lite edition of core with less default modules and a reduced package set.
Note that the server, by default, also runs as an agent.
''; '';
default = false; default = false;
type = types.bool; type = types.bool;

View file

@ -1,11 +0,0 @@
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.pub-solar.core;
in
{
pub-solar.terminal-life.enable = lib.mkIf (!cfg.lite-core-active) true;
pub-solar.audio.enable = lib.mkIf (!cfg.lite-core-active) true;
pub-solar.crypto.enable = lib.mkIf (!cfg.lite-core-active) true;
pub-solar.devops.enable = lib.mkIf (!cfg.lite-core-active) true;
}

View file

@ -24,9 +24,18 @@ in
lsof lsof
psmisc psmisc
file file
# zippit
zip
unzip
# Modern modern utilities
p7zip
croc
jq
] ]
++ lib.optionals (!cfg.lite-core-active) [ ++ lib.optionals (!cfg.lite) [
mtr mtr
gitFull gitFull
@ -48,16 +57,6 @@ in
findutils findutils
exfat exfat
# zippit
zip
unzip
# Modern modern utilities
p7zip
croc
jq
# Nix specific utilities # Nix specific utilities
niv niv
manix manix