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
];
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 = {
lite-core-active = mkOption {
lite = mkOption {
description = ''
Whether the node should run as a server or agent.
Note that the server, by default, also runs as an agent.
Enable a lite edition of core with less default modules and a reduced package set.
'';
default = false;
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
psmisc
file
# zippit
zip
unzip
# Modern modern utilities
p7zip
croc
jq
]
++ lib.optionals (!cfg.lite-core-active) [
++ lib.optionals (!cfg.lite) [
mtr
gitFull
@ -48,16 +57,6 @@ in
findutils
exfat
# zippit
zip
unzip
# Modern modern utilities
p7zip
croc
jq
# Nix specific utilities
niv
manix