Creates a standalone data file that can be imported by both aspects/constants.nix and terranix configurations. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
15 lines
391 B
Nix
15 lines
391 B
Nix
# aspects/server/nix.nix
|
|
{ inputs, ... }:
|
|
{
|
|
flake.modules.nixos.server-nix = { config, lib, pkgs, ... }: {
|
|
environment.etc."channels/nixpkgs".source = inputs.nixpkgs-stable.outPath;
|
|
|
|
nix = {
|
|
registry.nixpkgs.flake = inputs.nixpkgs-stable;
|
|
nixPath = [
|
|
"nixpkgs=/etc/channels/nixpkgs"
|
|
"/nix/var/nix/profiles/per-user/root/channels"
|
|
];
|
|
};
|
|
};
|
|
}
|