added some beginning docu

This commit is contained in:
Dennis Frieberg 2023-06-12 12:02:01 +02:00
parent 65521a121c
commit 8132dae08a
Signed by: nerf
GPG key ID: 1EC6F5573876CC80
3 changed files with 19 additions and 3 deletions

View file

@ -1,3 +1,13 @@
# nixMail
# nixConfig
a try to configure a nixOS mail server
## Build a machine
### Local
If you want to build the machineconfiguration for machine <name>
run
```
nix build .#nixosConfiguration.<name>
```
### On the machine
clone this repo to `/etc/nixos/` and `nixos-rebuild` that will select
the appropriate machine based on hostname

View file

@ -1,6 +1,9 @@
{inputs, ...}:
{
debug = true;
# debug = true;
# We only define machines config in this flake yet, so we only include
# the module that builds these. This file might get fuller, if we need to
# build our own packages, that are not flakes.
imports = [ ./nixos/flake-module.nix
# To import a flake module
# 1. Add foo to inputs

View file

@ -1,4 +1,7 @@
# copied and adopted from maralorns config
# This automatically searches for nixos configs in ./machines/${name}/configuration.nix
# and exposes them as outputs.nixosConfigurations.${name}
{ withSystem, lib, inputs, ... }: {
flake = {
nixosConfigurations = withSystem "x86_64-linux" ({ pkgs, ... }: