config-manager: Move installation of nh to module

And add `system` option that is required to pick the correct package
from `nh`
This commit is contained in:
Alexander Heldt
2023-10-22 14:03:02 +02:00
parent c2b051ad31
commit 11cb33039b
5 changed files with 38 additions and 12 deletions

View File

@@ -1,8 +1,12 @@
# `config-manager`
`./config-manager` is a module that contains a script to make usage of this flake easier.
To install it first add the module to the nixOS system connfiguration and then
run `nixos-rebuild switch --flake .#<configuration>`, after that `cm` will be available on `$PATH`.
To install it
1. first add the module to the nixOS system connfiguration
2. set `config-manager.flakePath = <path to this flake>`
3. set `config-manager.system = <system type for the machine>`
4. run `nixos-rebuild switch --flake .#<configuration>`
after that `cm` will be available on `$PATH`.
# Secrets
Secrets are managed by `agenix` (https://github.com/ryantm/agenix).