forked from DGNum/liminix
much text, such doc, very wow
This commit is contained in:
parent
3669a4000f
commit
2a29a00dfe
5 changed files with 41 additions and 5 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
## Base options
|
||||||
|
## ============
|
||||||
|
|
||||||
|
|
||||||
{ lib, pkgs, config, ...}:
|
{ lib, pkgs, config, ...}:
|
||||||
let
|
let
|
||||||
inherit (lib) mkEnableOption mkOption types isDerivation hasAttr ;
|
inherit (lib) mkEnableOption mkOption types isDerivation hasAttr ;
|
||||||
|
|
|
@ -1,3 +1,11 @@
|
||||||
|
## Busybox
|
||||||
|
## =======
|
||||||
|
##
|
||||||
|
## Busybox provides stripped-down versions of many usual
|
||||||
|
## Linux/Unix tools, and may be configured to include only
|
||||||
|
## the commands (termed "applets") required by the user or
|
||||||
|
## by other included modules.
|
||||||
|
|
||||||
{ lib, pkgs, config, ...}:
|
{ lib, pkgs, config, ...}:
|
||||||
let
|
let
|
||||||
inherit (lib) mkOption mkEnableOption types mapAttrsToList;
|
inherit (lib) mkOption mkEnableOption types mapAttrsToList;
|
||||||
|
@ -47,12 +55,14 @@ in {
|
||||||
programs.busybox = {
|
programs.busybox = {
|
||||||
applets = mkOption {
|
applets = mkOption {
|
||||||
type = types.listOf types.str;
|
type = types.listOf types.str;
|
||||||
|
description = "Applets required";
|
||||||
default = [];
|
default = [];
|
||||||
example = ["sh" "getty" "login"];
|
example = ["sh" "getty" "login"];
|
||||||
};
|
};
|
||||||
options = mkOption {
|
options = mkOption {
|
||||||
# mostly the values are y n or m, but sometimes
|
# mostly the values are y n or m, but sometimes
|
||||||
# other strings are also used
|
# other strings are also used
|
||||||
|
description = "Other busybox config flags that do not map directly to applet names (often prefixed FEATURE_)";
|
||||||
type = types.attrsOf types.nonEmptyStr;
|
type = types.attrsOf types.nonEmptyStr;
|
||||||
default = { };
|
default = { };
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,3 +1,11 @@
|
||||||
|
## Hardware-dependent options
|
||||||
|
## ==========================
|
||||||
|
##
|
||||||
|
## These are attributes of the hardware not of the application
|
||||||
|
## you want to run on it, and would usually be set in the "device" file:
|
||||||
|
## :file:`devices/manuf-model/default.nix`
|
||||||
|
|
||||||
|
|
||||||
{ lib, pkgs, config, ...}:
|
{ lib, pkgs, config, ...}:
|
||||||
let
|
let
|
||||||
inherit (lib) mkEnableOption mkOption types isDerivation hasAttr ;
|
inherit (lib) mkEnableOption mkOption types isDerivation hasAttr ;
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
## PPP
|
## PPP
|
||||||
## ===
|
## ===
|
||||||
##
|
##
|
||||||
## A rudimentary PPPoE (PPP over Ethernet) configuration to address
|
## A PPPoE (PPP over Ethernet) configuration to address the case where
|
||||||
## the case where your Liminix device is connected to an upstream
|
## your Liminix device is connected to an upstream network using
|
||||||
## network using PPPoE. This is typical for UK broadband connections
|
## PPPoE. This is typical for UK broadband connections where the
|
||||||
## (except "cable"), and common in some other localities as well: ask
|
## physical connection is made by OpenReach ("Fibre To The X") and
|
||||||
## your ISP if this is you.
|
## common in some other localities as well: ask your ISP if this is
|
||||||
|
## you.
|
||||||
|
|
||||||
{ lib, pkgs, config, ...}:
|
{ lib, pkgs, config, ...}:
|
||||||
let
|
let
|
||||||
|
|
|
@ -1,3 +1,16 @@
|
||||||
|
## Users
|
||||||
|
## =====
|
||||||
|
##
|
||||||
|
## User- and group-related configuration.
|
||||||
|
##
|
||||||
|
## Changes made here are reflected in files such as :file:/etc/shadow,
|
||||||
|
## :file:/etc/passwd, :file:/etc/group etc. If you are familiar with
|
||||||
|
## user configuration in NixOS, please note that Liminix does not have
|
||||||
|
## the concept of "mutable users" - files in /etc/ are symlinks to
|
||||||
|
## the immutable store, so you can't e.g change a password with
|
||||||
|
## :command:`passwd`
|
||||||
|
|
||||||
|
|
||||||
{ lib, pkgs, config, ...}:
|
{ lib, pkgs, config, ...}:
|
||||||
let
|
let
|
||||||
inherit (lib)
|
inherit (lib)
|
||||||
|
|
Loading…
Reference in a new issue