@@ 145,6 145,12 @@
};
nix = { # Nix Package Manager settings
+ registry.nixpkgs.flake = inputs.nixpkgs;
+ nixPath = [
+ "nixpkgs=flake:nixpkgs"
+ "nixpkgs-stable=flake:nixpkgs-stable"
+ ];
+
settings = {
auto-optimise-store = true; # Optimise syslinks
substituters = [
@@ 161,7 167,6 @@
options = "--delete-older-than 2d";
};
package = pkgs.nixVersions.unstable; # Enable nixFlakes on system
- registry.nixpkgs.flake = inputs.nixpkgs;
extraOptions = ''
experimental-features = nix-command flakes
keep-outputs = true
@@ 11,7 11,7 @@
# └─ default.nix
#
-{ config, lib, nix-index-database, nixpkgs, stable, pkgs, user, location, ... }:
+{ config, lib, nix-index-database, nixpkgs, inputs, stable, pkgs, user, location, ... }:
{
imports = # Home Manager Modules
@@ 21,6 21,11 @@
(import ../modules/services/home.nix);
nixpkgs.config.allowUnfree = true;
+ nix = {
+ registry.nixpkgs.flake = inputs.nixpkgs;
+ };
+ home.sessionVariables.NIX_PATH =
+ "nixpkgs=flake:nixpkgs$\{NIX_PATH:+:$NIX_PATH}";
xdg = {
userDirs = let dir = s: "${config.home.homeDirectory}/${s}"; in {