Update the config, start writing documentation.

This commit is contained in:
Root User 2026-02-10 17:06:59 +01:00
parent 34abb21e0b
commit 7f122aab05
Signed by: root
GPG key ID: 087F0A95E5766D72
3 changed files with 161 additions and 0 deletions

View file

@ -0,0 +1,49 @@
{
config,
pkgs,
lib,
...
}: {
options.local = {
hostname = lib.mkOption {
type = lib.types.str;
default = "nixos-default";
description = "System hostname";
};
username = lib.mkOption {
type = lib.types.str;
default = "user";
description = "Primary user username";
};
userDescription = lib.mkOption {
type = lib.types.str;
default = "NixOS User";
description = "Primary user description";
};
address = lib.mkOption {
type = lib.types.str;
default = "10.1.1.100";
description = "Static IP address";
};
};
imports = [
./modules/desktop-manager/sway_greetd_homemanager.nix
./modules/local/hostname_username.nix
./modules/local/networking_local.nix
./modules/bootloader/seabios-assigned-iso-at-birth.nix
./modules/lix-default.nix
# Optionally to enable remote building: ./modules/toolsets/remote_building.nix
#./modules/songsheet/wavelog/docker-compose.nix
#./modules/secrets-config/sops-the-blank-system.nix
];
config = {
local.hostname = "nixos-songsheet";
local.username = "songsheetprg";
local.userDescription = "NixOS PRG Portainer-Like Songsheet Service";
local.address = "10.1.1.249";
system.stateVersion = "25.11";
};
}

View file

@ -68,6 +68,8 @@
address = "0.0.0.0";
database_backend = "rocksdb";
server_name = "lgbtq.prg-radio.org";
allow_federation = true;
allow_check_for_updates = true;
# See https://docs.conduit.rs/turn.html, and https://github.com/element-hq/synapse/blob/develop/docs/turn-howto.md for more details
# turn_uris = [
@ -82,11 +84,13 @@
80
443
12244
8448
];
networking.firewall.allowedUDPPorts = [
80
443
12244
8448
];
system.stateVersion = "25.11";