Config of my NixOS hosts
Find a file
2022-10-05 21:52:24 +02:00
hardware Fix black screen after suspend 2022-09-01 00:28:15 +02:00
modules Use p10k instead of oh-my-zsh theme 2022-10-05 20:34:38 +02:00
packages Update ActivityWatch 2022-09-17 00:54:31 +02:00
profiles Update to NixOS 22.05 2021-12-01 02:13:36 +01:00
ssh_keys Add rpi3 2022-09-05 01:37:52 +02:00
users Update vscode settings 2022-10-05 21:52:24 +02:00
.gitignore Add VS code 2021-08-23 03:55:50 +02:00
flake.lock Add ActivityWatch 2022-09-15 23:49:33 +02:00
flake.nix Add ActivityWatch 2022-09-15 23:49:33 +02:00
overlay.nix Add ActivityWatch 2022-09-15 23:49:33 +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
----