From 3f69286ef4b15161febb4a4bae085fb4c2c83bbf Mon Sep 17 00:00:00 2001 From: Jasper Ras Date: Sat, 29 Mar 2025 11:32:44 +0100 Subject: vault backup: 2025-03-29 11:32:44 --- ...stom modules as profiles to manage various NixOS hosts.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Build custom modules as profiles to manage various NixOS hosts.md (limited to 'Build custom modules as profiles to manage various NixOS hosts.md') diff --git a/Build custom modules as profiles to manage various NixOS hosts.md b/Build custom modules as profiles to manage various NixOS hosts.md new file mode 100644 index 0000000..c463638 --- /dev/null +++ b/Build custom modules as profiles to manage various NixOS hosts.md @@ -0,0 +1,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]] \ No newline at end of file -- cgit v1.2.3