Files
nixconfig/configuration.nix
T
Coding Agent c4e17c4616 fix: pin Nix lookup outside login shells
Set the global nix-path from the declarative NIX_PATH list so a clean environment resolves the same locked Nixpkgs. Keep old root channel profiles for recovery rather than deleting them to silence the activation warning.
2026-09-04 23:24:04 +00:00

34 lines
724 B
Nix

{
config,
inputs,
modulesPath,
...
}:
{
imports = [
# Keep the image's EC2 boot, storage, metadata, SSH and SSM integration.
"${modulesPath}/virtualisation/amazon-image.nix"
./users.nix
./tools.nix
./neovim.nix
];
nixpkgs.hostPlatform = "x86_64-linux";
nix = {
channel.enable = false;
# Keep non-login environments on the same pin when NIX_PATH is unset.
settings.nix-path = config.nix.nixPath;
settings.experimental-features = [
"nix-command"
"flakes"
];
};
system.configurationRevision = inputs.self.rev or inputs.self.dirtyRev or null;
# Initial data/default compatibility, not the desired package release.
system.stateVersion = "26.05";
}