nbos

nbos

https://git.tonybtw.com/nbos.git git://git.tonybtw.com/nbos.git
1,178 bytes raw
1
/* /etc/nb/config.c */
2
#include "../include/nbos.h"
3
#include "../pkgs/glibc/glibc.h"
4
#include "../pkgs/linux/linux.h"
5
#include "../pkgs/neovim/neovim.h"
6
#include "../pkgs/oxwm/oxwm.h"
7
#include "../pkgs/dash/dash.h"
8
#include "../pkgs/firefox/firefox.h"
9
10
static const pkg *const my_pkgs[] = {
11
    &pkgs_glibc,
12
    &pkgs_linux,
13
    &pkgs_neovim,
14
    &pkgs_oxwm,
15
    &pkgs_firefox,
16
};
17
18
static const char *const sshd_after[]  = { "network" };
19
static const service my_services[] = {
20
    { .name = "sshd", .enabled = true,
21
      .after = { .data = sshd_after, .len = 1 } },
22
};
23
24
static const char *const tony_groups[] = { "wheel", "video", "audio" };
25
static const user my_users[] = {
26
    { .name   = "tony",
27
      .shell  = &pkgs_dash,
28
      .home   = "/home/tony",
29
      .groups = { .data = tony_groups, .len = 3 } },
30
};
31
32
const system_cfg CFG = SYSTEM_CFG_INIT(
33
    .hostname = "nbos-btw",
34
    .boot = {
35
        .bootloader    = "limine",
36
        .kernel        = &pkgs_linux,
37
        .kernel_params = "quiet loglevel=3",
38
    },
39
    .pkgs     = { .data = my_pkgs,     .len = 5 },
40
    .services = { .data = my_services, .len = 1 },
41
    .users    = { .data = my_users,    .len = 1 },
42
);