Skip to content

Commit

Permalink
Merge pull request #268 from Turmaxx/master
Browse files Browse the repository at this point in the history
Added Missing Bracket in REAME and
  • Loading branch information
Lassulus authored Feb 14, 2024
2 parents 3b6bde6 + d1c7e9a commit 0aa24e9
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,31 +193,32 @@ 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
];
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 = {
# ...
};
};
# 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 ];
};
};
};
}
Expand Down

0 comments on commit 0aa24e9

Please sign in to comment.