diff --git a/hosts/default.nix b/hosts/default.nix index 62a4b7bf..2e4b092c 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -14,6 +14,13 @@ let specialArgs = { inherit unstablePkgs; + + flakes = { + nixpkgs = nixpkgs; + master = inputs.unstable; + nixflk = self; + }; + usr = { inherit utils; }; }; diff --git a/profiles/core.nix b/profiles/core.nix index aef3a48a..221723ad 100644 --- a/profiles/core.nix +++ b/profiles/core.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, unstablePkgs, ... }: +{ config, lib, pkgs, unstablePkgs, flakes, ... }: let inherit (lib) fileContents; in { @@ -6,6 +6,12 @@ in { nix.systemFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ]; + nix.registry = with flakes; { + nixpkgs.flake = nixpkgs; + nixflk.flake = nixflk; + master.flake = master; + }; + imports = [ ../local/locale.nix ]; environment = {