From d1c7e9a239d4b0e2a74d7665ad106df77727d637 Mon Sep 17 00:00:00 2001 From: Brook <88465473+Turmaxx@users.noreply.github.com> Date: Sat, 26 Aug 2023 11:12:51 +0300 Subject: [PATCH] Updated README --- README.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index c41e48e..59220e1 100644 --- a/README.md +++ b/README.md @@ -172,7 +172,7 @@ Images can be built from that flake by running: # A single nixos config outputting multiple formats. # Alternatively put this in a configuration.nix. - nixosModules.my-machine = {config, ...}: { + nixosModules.my-machine = { config, ... }: { imports = [ nixos-generators.nixosModules.all-formats ]; @@ -180,13 +180,13 @@ Images can be built from that flake by running: nixpkgs.hostPlatform = "x86_64-linux"; # customize an existing format - formatConfigs.vmware = {config, ...}: { + formatConfigs.vmware = { config, ... }: { services.openssh.enable = true; }; # define a new format - formatConfigs.my-custom-format = {config, modulesPath, ...}: { - imports = ["${toString modulesPath}/installer/cd-dvd/installation-cd-base.nix"]; + formatConfigs.my-custom-format = { config, modulesPath, ... }: { + imports = [ "${toString modulesPath}/installer/cd-dvd/installation-cd-base.nix" ]; formatAttr = "isoImage"; fileExtension = ".iso"; networking.wireless.networks = { @@ -194,9 +194,10 @@ Images can be built from that flake by running: }; }; - # the evaluated machine - nixosConfigurations.my-machine = nixpkgs.lib.nixosSystem { - modules = [self.nixosModules.my-machine]; + # the evaluated machine + nixosConfigurations.my-machine = nixpkgs.lib.nixosSystem { + modules = [ self.nixosModules.my-machine ]; + }; }; }; }