2022-10-04 19:22:24 +02:00
2022-10-04 14:08:04 +02:00
2022-10-04 19:22:24 +02:00
2022-10-04 14:41:15 +02:00
2022-10-04 14:41:38 +02:00
2022-10-04 14:08:04 +02:00
2022-10-04 19:17:17 +02:00

malobeo infrastructure

this repository nxios configurations of the digital malobeo infrastructure. it should be used to setup, test, build and deploy different hosts in a reproducible manner.

creating a new host

setting up filesystem

currently nixos offers no declarative way of setting up filesystems and partitions. that means this has to be done manually for every new host. to make it as easy as possible we can use this guide to setup an encrypted zfs filesystem

we could create a shell script out of that

deploying configuration

TODO

development

requirements

we use flake based configurations for our hosts. if you want to build configurations on you own machine you have to enable flakes first by adding the following to your configuration.nix or nix.conf

nix.extraOptions = ''
  experimental-features = nix-command flakes
'';

More information about flakes can be found here

dev shell

a development shell with the correct environment can be created by running nix develop

If you're using direnv you can add flake support by following those steps: link

build a configuration

to build a configuration run the following command (replace <hostname> with the actual hostname):

nix build .#nixosConfigurations.<hostname>.config.system.build.toplevel

run a configuration as vm

to run a vm we have to build it first using the following command (replace <hostname> with the actual hostname):

nix build .#nixosConfigurations.<hostname>.config.system.build.vm

afterwards run the following command to start the vm:

./result/bin/run-<hostname>-vm

documentation

for documentation we currently just use README.md files.

the devshell provides the python package 'grip' which can be used to preview different README.md files in the browser. the usage is simple, just run grip in the same folder as the README.md you wanna preview. then open your browser at http://localhost:6419 .

ideas...

  • host a local wiki with public available information about the space, for example:
    • how to use coffe machine
    • how to turn on/off electricity
    • ...
  • host some pad (codimd aka hedgedoc)
  • some network fileshare for storing the movies and streaming them within the network
Description
No description provided
Readme 2.4 MiB
Languages
Nix 88.9%
Shell 11.1%