Config of my NixOS hosts
Find a file
Paul-Henri Froidmont fafc1334b9
Add stellaris host
2025-09-09 13:41:05 +02:00
hosts Add stellaris host 2025-09-09 13:41:05 +02:00
lib Format using nixfmt rfc style 2024-08-20 22:58:24 +02:00
modules Add stellaris host 2025-09-09 13:41:05 +02:00
packages Format using nixfmt rfc style 2024-08-20 22:58:24 +02:00
ssh_keys Add rpi3 2022-09-05 01:37:52 +02:00
.gitignore Add VS code 2021-08-23 03:55:50 +02:00
common.nix Tweak performance settings 2025-09-09 01:40:56 +02:00
flake.lock Update inputs 2025-07-31 17:10:33 +02:00
flake.nix Add mongodb-compass 2025-08-12 12:49:45 +02:00
overlay.nix Format using nixfmt rfc style 2024-08-20 22:58:24 +02:00
README.adoc Use Flakes 2021-07-02 01:47:30 +02:00
UNLICENSE Add UNLICENSE 2021-07-08 19:23:23 +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
----