Config of my NixOS hosts
Find a file
Paul-Henri Froidmont 9902d9c193 Remove Slack
2021-07-07 22:37:38 +02:00
configs Remove Slack 2021-07-07 22:37:38 +02:00
hosts Migrate desktop to new NVMe SSH 2021-07-07 17:04:33 +02:00
.gitignore Improve Ubuntu config 2020-10-11 20:38:01 +02:00
flake.lock Use Flakes 2021-07-02 01:47:30 +02:00
flake.nix Use Flakes 2021-07-02 01:47:30 +02:00
README.adoc Use Flakes 2021-07-02 01:47:30 +02:00

== 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
----