From 0e0f18acc7ee2068bdab3e54bc7f42309a82e487 Mon Sep 17 00:00:00 2001 From: Christopher James Hayward Date: Tue, 17 May 2022 12:45:41 -0400 Subject: [PATCH] Move host configuration block --- README.org | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/README.org b/README.org index b843f2e..fd405f0 100644 --- a/README.org +++ b/README.org @@ -124,9 +124,7 @@ RUN nix-shell /etc/dotfiles/shell.nix }; outputs = inputs @ { self, nixpkgs, nixpkgs-unstable, ... }: { - nixosConfigurations = { - <> - }; + <> } // <> } @@ -493,7 +491,18 @@ mkShell { * Host Configurations -[[https://nixos.org/][NixOS]] typically stores the current machine configuration in =/etc/nixos/configuration.nix=. In this project, this file is stored in =/etc/dotfiles/hosts/$HOSTNAME/...=, and imported, along with the generated hardware configurations. This ensures that multiple host machines can share the same modules, and generating new host definitions is trivial. It also makes it easier to share common configurations amongst all of the hosts, such as with pre-configured wireless networking: +[[https://nixos.org/][NixOS]] typically stores the current machine configuration in =/etc/nixos/configuration.nix=. In this project, this file is stored in =/etc/dotfiles/hosts/$HOSTNAME/...=, and imported, along with the generated hardware configurations. This ensures that multiple host machines can share the same modules, and generating new host definitions is trivial. + +#+NAME: host-configurations +#+BEGIN_SRC nix :noweb yes +nixosConfigurations = { + <> +}; +#+END_SRC + +** Shared + +NixOS makes it easier to share common configurations amongst all of the hosts, such as with pre-configured wireless networking: #+NAME: host-config-wifi #+BEGIN_SRC nix