Config of my NixOS hosts
Find a file
Paul-Henri Froidmont e7298e005b
Switch to Alacritty
2022-07-27 03:16:04 +02:00
hardware Update Flake inputs, enable opengl and add dconf to systemd packages 2022-04-26 14:06:30 +02:00
modules Update Flake inputs, enable opengl and add dconf to systemd packages 2022-04-26 14:06:30 +02:00
profiles Update to NixOS 22.05 2021-12-01 02:13:36 +01:00
users Switch to Alacritty 2022-07-27 03:16:04 +02:00
.gitignore Add VS code 2021-08-23 03:55:50 +02:00
flake.lock Update Flake inputs 2022-06-22 20:08:26 +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
----