Config of my NixOS hosts
Find a file
Paul-Henri Froidmont 76ce1bf814
Update flake inputs
2024-03-12 01:00:42 +01:00
hosts Cleanup Joshuto config 2024-03-03 23:49:38 +01:00
lib Move home config into modules 2023-03-21 10:37:27 +01:00
modules Update flake inputs 2024-03-12 01:00:42 +01:00
packages Update ActivityWatch 2022-09-17 00:54:31 +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 Use htop-vim 2024-02-25 17:56:09 +01:00
flake.lock Update flake inputs 2024-03-12 01:00:42 +01:00
flake.nix Update NixOS to 23.11 2024-02-09 15:15:20 +01:00
overlay.nix Modularize everything 2023-03-21 14:42:39 +01: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
----