Config of my NixOS hosts
Find a file
Paul-Henri Froidmont d4ede85a43
Add opencode.nvim
2025-12-08 02:40:50 +01:00
hosts Config for default browser 2025-11-03 13:39:50 +01:00
lib Format using nixfmt rfc style 2024-08-20 22:58:24 +02:00
modules Add opencode.nvim 2025-12-08 02:40:50 +01:00
packages Format using nixfmt rfc style 2024-08-20 22:58:24 +02:00
ssh_keys Update ssh key 2025-09-09 17:01:46 +02:00
.gitignore Add VS code 2021-08-23 03:55:50 +02:00
common.nix Setup nvidia drivers on stellaris 2025-09-09 16:27:22 +02:00
flake.lock opencode: use most recent version 2025-12-06 23:27:13 +01:00
flake.nix opencode: use most recent version 2025-12-06 23:27:13 +01: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
----