Config of my NixOS hosts
Find a file
2021-09-09 15:29:37 +02:00
hardware Adapt laptop's config to the new structure 2021-07-20 00:19:01 +02:00
modules Move netrc file to a common location 2021-09-02 19:13:31 +02:00
profiles Improve repo structure 2021-07-16 21:09:58 +02:00
users Configure tailwindcss extension for vscode 2021-09-09 15:29:37 +02:00
.gitignore Add VS code 2021-08-23 03:55:50 +02:00
flake.lock Add VS code 2021-08-23 03:55:50 +02:00
flake.nix Add nix-ide extension to VS code 2021-08-23 04:39:50 +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
----