ce6e96bd20
Maybe some of the refactoring things I did don't make much sense, but I did them. The goal was to get rid of those macros (because macro definitions are really hard to read). I replaced two of them with very similar functions, and rearranged the `install` function. The installer now generates password hashes from the password entered by the user or listed in the toml file. This value is NO LONGER the password hash. The example configs have been changed to reflect this.
174 lines
2.1 KiB
TOML
174 lines
2.1 KiB
TOML
# This is the default configuration file
|
|
|
|
# General settings
|
|
[general]
|
|
# Do not prompt if settings are not defined
|
|
prompt = false
|
|
|
|
# Package settings
|
|
[packages]
|
|
#acid = {}
|
|
#autoconf = {}
|
|
#automake = {}
|
|
#bash = {}
|
|
#binutils = {}
|
|
#ca-certificates = {}
|
|
#cargo = {}
|
|
#contain = {}
|
|
coreutils = {}
|
|
#curl = {}
|
|
#dash = {}
|
|
#diffutils = {}
|
|
drivers = {}
|
|
extrautils = {}
|
|
findutils = {}
|
|
#games = {}
|
|
#gawk = {}
|
|
#gcc = {}
|
|
#git = {}
|
|
#gnu-binutils = {}
|
|
#gnu-make = {}
|
|
#installer = {}
|
|
ion = {}
|
|
#lua = {}
|
|
#nasm = {}
|
|
netstack = {}
|
|
netutils = {}
|
|
#newlib = {}
|
|
#openssl = {}
|
|
orbdata = {}
|
|
orbital = {}
|
|
orbterm = {}
|
|
orbutils = {}
|
|
pastel = {}
|
|
#patch = {}
|
|
#pixelcannon = {}
|
|
pkgutils = {}
|
|
ptyd = {}
|
|
#python = {}
|
|
randd = {}
|
|
#redoxfs = {}
|
|
#rust = {}
|
|
#rustual-boy = {}
|
|
#sed = {}
|
|
smith = {}
|
|
sodium = {}
|
|
userutils = {}
|
|
uutils = {}
|
|
#xz = {}
|
|
|
|
# User settings
|
|
[users.root]
|
|
password = "password"
|
|
uid = 0
|
|
gid = 0
|
|
name = "root"
|
|
home = "/root"
|
|
|
|
[users.user]
|
|
# Password is unset
|
|
password = ""
|
|
|
|
[[files]]
|
|
path = "/etc/init.d/00_base"
|
|
data = """
|
|
pcid /etc/pcid/filesystem.toml
|
|
randd
|
|
ptyd
|
|
"""
|
|
|
|
[[files]]
|
|
path = "/etc/init.d/10_net"
|
|
data = """
|
|
ethernetd
|
|
ipd
|
|
icmpd
|
|
tcpd
|
|
udpd
|
|
dhcpd -b
|
|
"""
|
|
|
|
[[files]]
|
|
path = "/etc/init.d/20_orbital"
|
|
data = """
|
|
orbital display:3/activate orblogin launcher
|
|
"""
|
|
|
|
[[files]]
|
|
path = "/etc/init.d/30_console"
|
|
data = """
|
|
getty display:2
|
|
getty debug: -J
|
|
"""
|
|
|
|
[[files]]
|
|
path = "/etc/net/dns"
|
|
data = """
|
|
208.67.222.222
|
|
"""
|
|
|
|
[[files]]
|
|
path = "/etc/net/ip"
|
|
data = """
|
|
10.0.2.15
|
|
"""
|
|
|
|
[[files]]
|
|
path = "/etc/net/ip_router"
|
|
data = """
|
|
10.0.2.2
|
|
"""
|
|
|
|
[[files]]
|
|
path = "/etc/net/ip_subnet"
|
|
data = """
|
|
255.255.255.0
|
|
"""
|
|
|
|
[[files]]
|
|
path = "/etc/net/mac"
|
|
data = """
|
|
54-52-00-ab-cd-ef
|
|
"""
|
|
|
|
[[files]]
|
|
path = "/etc/pkg.d/50_redox"
|
|
data = "https://static.redox-os.org/pkg"
|
|
|
|
[[files]]
|
|
path = "/etc/group"
|
|
data = """
|
|
root;0;root
|
|
user;1000;user
|
|
sudo;1;user
|
|
"""
|
|
|
|
[[files]]
|
|
path = "/etc/hostname"
|
|
data = """
|
|
redox
|
|
"""
|
|
|
|
[[files]]
|
|
path = "/etc/issue"
|
|
data = """
|
|
########## Redox OS ##########
|
|
# Login with the following: #
|
|
# `user` #
|
|
# `root`:`password` #
|
|
##############################
|
|
|
|
"""
|
|
|
|
[[files]]
|
|
path = "/etc/motd"
|
|
data = """
|
|
Welcome to Redox OS!
|
|
|
|
"""
|
|
|
|
[[files]]
|
|
path = "/usr"
|
|
data = "/"
|
|
symlink = true
|