nixos-configs/README.adoc
Paul-Henri Froidmont bf7f910f23 Use Flakes
2021-07-02 01:47:30 +02:00

18 lines
391 B
Text

== Build a config and switch to it
[source,bash]
----
sudo nixos-rebuild switch --flake .#thehostname
----
If `#thehostname` is not provided, it defaults to the current hostname
== Try to build a configuration
[source,bash]
----
nix build .#nixosConfigurations.thehostname.config.system.build.toplevel
----
== Update lock file to the latest inputs
[source,bash]
----
nix flake update
----