Flakes: Difference between revisions

imported>Jmarmstrong1207
m Automatically switch nix shells with nix-direnv: Forgot to remove sections related to direnv
imported>Emanueljg
Add missing elipsis to broken nixosModules example.
Line 127: Line 127:
   overlays.default = final: prev: { };
   overlays.default = final: prev: { };
   # Nixos module, consumed by other flakes
   # Nixos module, consumed by other flakes
   nixosModules."<name>" = { config }: { options = {}; config = {}; };
   nixosModules."<name>" = { config, ... }: { options = {}; config = {}; };
   # Default module
   # Default module
   nixosModules.default = { config }: { options = {}; config = {}; };
   nixosModules.default = { config, ... }: { options = {}; config = {}; };
   # Used with `nixos-rebuild switch --flake .#<hostname>`
   # Used with `nixos-rebuild switch --flake .#<hostname>`
   # nixosConfigurations."<hostname>".config.system.build.toplevel must be a derivation
   # nixosConfigurations."<hostname>".config.system.build.toplevel must be a derivation