Finally fixed infinite recursion import issue.

This commit is contained in:
James Patrick 2022-08-14 18:30:39 -04:00
parent 1f7f488d3d
commit 2e0be055b9
3 changed files with 41 additions and 24 deletions

View File

@ -63,14 +63,9 @@
sharedOverlays = [ nur.overlay emacs-overlay.overlay ]; sharedOverlays = [ nur.overlay emacs-overlay.overlay ];
hostDefaults = { hostDefaults = {
modules = mapModulesRec' ./modules import ++ [ modules = mapModulesRec' ./modules import ++ [
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.james = import ./home.nix;
}
{ nixpkgs.overlays = [ nur.overlay (import ./pkgs) ]; } { nixpkgs.overlays = [ nur.overlay (import ./pkgs) ]; }
]; ];
specialArgs = { inherit home-manager nixos-hardware; };
system = "x86_64-linux"; system = "x86_64-linux";
}; };
}; };

View File

@ -1,21 +1,19 @@
{ config, pkgs, ... }: { config, pkgs, ... }: {
# # Home Manager needs a bit of information about you and the
# # paths it should manage.
# home.username = "james";
# home.homeDirectory = "/home/james";
{ # # This value determines the Home Manager release that your
# Home Manager needs a bit of information about you and the # # configuration is compatible with. This helps avoid breakage
# paths it should manage. # # when a new Home Manager release introduces backwards
home.username = "james"; # # incompatible changes.
home.homeDirectory = "/home/james"; # #
# # You can update Home Manager without changing this value. See
# # the Home Manager release notes for a list of state version
# # changes in each release.
# home.stateVersion = "21.11";
# This value determines the Home Manager release that your # # Let Home Manager install and manage itself.
# configuration is compatible with. This helps avoid breakage # programs.home-manager.enable = true;
# when a new Home Manager release introduces backwards
# incompatible changes.
#
# You can update Home Manager without changing this value. See
# the Home Manager release notes for a list of state version
# changes in each release.
home.stateVersion = "21.11";
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
} }

View File

@ -0,0 +1,24 @@
{ config, home-manager, lib, pkgs, ... }: {
imports = [ home-manager.nixosModules.home-manager ];
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.james = {
# Home Manager needs a bit of information about you and the
# paths it should manage.
home.username = "james";
home.homeDirectory = "/home/james";
# This value determines the Home Manager release that your
# configuration is compatible with. This helps avoid breakage
# when a new Home Manager release introduces backwards
# incompatible changes.
#
# You can update Home Manager without changing this value. See
# the Home Manager release notes for a list of state version
# changes in each release.
home.stateVersion = "21.11";
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
};
}