Skip to content

Commit

Permalink
Merge pull request #350 from jamesandariese/master
Browse files Browse the repository at this point in the history
Fix nixosModules example
  • Loading branch information
Mic92 authored Jul 13, 2024
2 parents 168b220 + 0846507 commit 076ea5b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,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.myFormats = { config, ... }: {
imports = [
nixos-generators.nixosModules.all-formats
];
Expand All @@ -271,11 +271,11 @@ Images can be built from that flake by running:
# ...
};
};
};
# the evaluated machine
nixosConfigurations.my-machine = nixpkgs.lib.nixosSystem {
modules = [ self.nixosModules.my-machine ];
};
# a machine consuming the module
nixosConfigurations.my-machine = nixpkgs.lib.nixosSystem {
modules = [ self.nixosModules.myFormats ];
};
};
}
Expand Down

0 comments on commit 076ea5b

Please sign in to comment.