adc/nix-configs
josiah b5ea90e664 Configuration.nix pruning, tests.
Pantheon is actually really nice, but unusable for me on nixos because
of how I use ssh agent. KDE provides ksshaskpass as a total
replacement for pinentry, it seems, and Pantheon just uses pinentry.

On nixos, pinentry appears to be Fucked Up, and changing pinentry
binaries to other nixos packages doesn't result in anything besides
more of regular pinentry, which doesn't allow copy paste, which is a
NON STARTER.

FUcking linux.
2023-09-24 11:24:13 -05:00
..
hosts/hoyden Configuration.nix pruning, tests. 2023-09-24 11:24:13 -05:00
readme.org Create new nix-configs folder for host specific nix configuration. 2023-08-13 09:11:48 -05:00

nix configurations

This folder tracks any nix configuration required. In the past I've experimented with using things like deploy-rs and morph for managing nix hosts, but unfortunately nix state of the art is just trash from a UX perspective. I don't recommend any of these things. Instead, I'm moving to naked configuration of a single configuration.nix file for the immediate future.

How this works

There is a single folder per host currently in use. Each folder contains about 2 files, configuration.nix and hardware-configuration.nix. Any changes made to a hosts configuration should go in the appropriate configuration file, saved, and committed. To use the latest version of a file, invoke rebuild switch with additional arguments, like:

nixos-rebuild -I nixos-config=path/to/your/configuration.nix

In our case, to rebuild the local hoyden configuration, we would run something like:

nixos-rebuild -I nixos-config=~/Documents/projects/adc/nix-configs/hosts/hoyden/configuration.nix switch