forked from pub-solar/os
Move some packages from full to default set, move options for modules to
default.nix
This commit is contained in:
parent
4190818304
commit
7785744d73
|
@ -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;
|
||||||
|
|
|
@ -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;
|
|
||||||
}
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue