summaryrefslogtreecommitdiff
path: root/Build custom modules as profiles to manage various NixOS hosts.md
blob: c46363811a3c9f704c182e3ade5610e4598e7931 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
---
tags:
  - nixos
---
Instead of putting a bunch of related configuration in files and import them all over the place I should aim to create reusable modules instead with options and defaults.

That way we can configure hosts not by importing and configuring a whole lot of stuff but by setting a few toggles and options on modules. For example a backup module that we can use for backup hosts on which we can just set some simple config options such as hostname.

Inspired by:
https://discourse.nixos.org/t/how-to-best-consolidate-repeated-portions-of-nixos-configs/24627/4?u=jras

[[NixOS]]