Use Flakes
This commit is contained in:
parent
6be5927c61
commit
bf7f910f23
6 changed files with 119 additions and 5 deletions
18
README.adoc
Normal file
18
README.adoc
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
== 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
|
||||
----
|
||||
Loading…
Add table
Add a link
Reference in a new issue