1
0
Fork 0
My NixOS configuration
Go to file
Kevin Baensch 47b88cfd35
Start migrating to NixOS mailman3 service.
2019-12-27 12:34:09 +01:00
config nix-serve should no longer use the default store. Move binaryCaches into the machine submodule. 2019-12-14 07:50:59 +01:00
machines Fix breakage after switching back from git to unstable channel. 2019-12-18 09:49:39 +01:00
options nix-serve should no longer use the default store. Move binaryCaches into the machine submodule. 2019-12-14 07:50:59 +01:00
pkgs emacs: Path should always be a string. 2019-12-26 10:57:52 +01:00
services Start migrating to NixOS mailman3 service. 2019-12-27 12:34:09 +01:00
.gitmodules Use official nixos-mailserver repo and update to latest commit. 2019-11-20 10:09:34 +01:00
LICENSE Add LICENSE 2019-05-19 06:12:28 +02:00
README.org Started writing a Documentation. 2019-10-09 14:48:11 +02:00
configuration.nix Make pkgsets accessible to service configurations. 2019-10-11 20:51:46 +02:00
fn.nix Add helper functions. -> should lead to code deduplication in the future. 2019-11-11 18:38:42 +01:00

README.org

THIS README IS A WIP IF YOU DON'T KNOW WHAT YOU ARE DOING YOU PROBABLY WONT GET IT TO RUN ON YOUR SYSTEM.

TODO Introduction

This is my NixOS configuration, it provides an abstraction from the already existing options on NixOS. To be more precise it is a collection of preconfigured services and metapackages that can be toggled and configured through a single NixOS submodule.

It's flexible enough to manage all my machines (multiple Servers and Desktops).

Currently the following services are configured:

  • Desktop

    • i3
  • MySQL/MariaDB
  • cups
  • fail2ban
  • nginx

    • Nextcloud
    • Gitea
    • Hydra (works but could be better)
  • openssh

TODO Getting Started/Setup Guide

WARNING:
I still change machine option names rather frequently and whilst it works for me it may break for you. You have been warned.

Nixpkgs Channels

See NixOS Channels. This Project references 4 channels:

nixos
Your main channel, can be any NixOS channel of your choosing.
nixos-stable
Should point to the current NixOS/NixOS-small channel.
nixos-unstable
Should point to nixos-unstable or nixos-unstable-small.
gitpkgs
A copy of the current nixpkgs git repo cloned into you system root.

Currently these channels are only referenced in pkgsets.nix. It can be easily replaced and is therefore optional (but recommended).

nix-channel --add https://nixos.org/channels/nixos-unstable nixos
nix-channel --add https://nixos.org/channels/nixos-19.09 nixos-stable
nix-channel --add https://nixos.org/channels/nixos-unstable nixos-unstable
nix-channel --update
git clone https://github.com/nixos/nixpkgs /nixpkgs

TODO Submodule Documentation

  • [TODO] Create a setup script.

All Submodules are defined in options.

machines

copySysConf