mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-12 19:27:17 +00:00
25 lines
709 B
Nix
25 lines
709 B
Nix
# Copyright (c) 2018 Terje Larsen
|
|
|
|
# This work is licensed under the terms of the MIT license.
|
|
# For a copy, see https://opensource.org/licenses/MIT.
|
|
|
|
# https://github.com/terlar/nix-config/blob/00c8a3622e8bc4cb522bbf335e6ede04ca07da40/flake-parts/home-manager/modules.nix
|
|
|
|
{ lib
|
|
, self
|
|
, inputs
|
|
, ...
|
|
}: {
|
|
flake.homeManagerModules =
|
|
let
|
|
modules = self.lib.importDirToAttrs ../../home-manager/modules;
|
|
in
|
|
{
|
|
nixpkgs-useFlakeNixpkgs = {
|
|
home.sessionVariables.NIX_PATH = "nixpkgs=${inputs.nixpkgs}";
|
|
systemd.user.sessionVariables.NIX_PATH = lib.mkForce "nixpkgs=${inputs.nixpkgs}";
|
|
nix.registry.nixpkgs.flake = inputs.nixpkgs;
|
|
};
|
|
}
|
|
// modules;
|
|
}
|