From cf54928bdf50e3da6c856c21dfc22b2cb6ce946d Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Sat, 1 Feb 2025 21:50:30 +0100 Subject: [PATCH] docs --- README.md | 4 ++++ hosts/yodaTuxHeadless/hive.nix | 17 +++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 hosts/yodaTuxHeadless/hive.nix diff --git a/README.md b/README.md index 3c4e3cc..628b0d5 100644 --- a/README.md +++ b/README.md @@ -201,6 +201,10 @@ i='@server'; colmena build --on $i -v --show-trace && colmena apply --on $i boot #colmena exec --on $i "reboot" ``` +yodaTuxHeadless: + +- This is a second configuration file for the `yodaTux` host. Therefore, its deployment config is in a separate `hive.nix` file. First `cd` into [hosts/yodaTuxHeadless](hosts/yodaTuxHeadless), then run the "normal" colmena commands for `yodaTux`. + ### Update * Updating NixOS. https://superuser.com/a/1604695 diff --git a/hosts/yodaTuxHeadless/hive.nix b/hosts/yodaTuxHeadless/hive.nix new file mode 100644 index 0000000..3da4c71 --- /dev/null +++ b/hosts/yodaTuxHeadless/hive.nix @@ -0,0 +1,17 @@ +let + sources = import ../../nix/sources.nix; +in +{ + meta = { + nixpkgs = import sources.nixpkgs {}; + }; + + yodaTux = { name, nodes, ... }: { + imports = [ ./configuration.nix ]; + + deployment = { + allowLocalDeployment = true; + targetHost = null; + }; + }; +}