Config of my NixOS hosts
Find a file
Paul-Henri Froidmont f569722980
Update hosts
2023-02-22 23:12:01 +01:00
hardware Enable zram swap 2022-11-30 03:54:04 +01:00
modules Update hosts 2023-02-22 23:12:01 +01:00
packages Update ActivityWatch 2022-09-17 00:54:31 +02:00
profiles desktop: improve hardware config and enable systemd-networkd 2022-10-27 21:09:46 +02:00
ssh_keys Add rpi3 2022-09-05 01:37:52 +02:00
users Apply overlay to unstable packages 2023-01-27 18:23:01 +01:00
.gitignore Add VS code 2021-08-23 03:55:50 +02:00
flake.lock Switch to stable branch and update inputs 2023-01-17 11:21:33 +01:00
flake.nix Apply overlay to unstable packages 2023-01-27 18:23:01 +01:00
overlay.nix Apply overlay to unstable packages 2023-01-27 18:23:01 +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
----