38 lines
		
	
	
	
		
			787 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
	
		
			787 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{
 | 
						|
  config,
 | 
						|
  inputs,
 | 
						|
  lib,
 | 
						|
  ...
 | 
						|
}:
 | 
						|
 | 
						|
{
 | 
						|
  flake.modules.nixos = {
 | 
						|
    base = {
 | 
						|
      imports = [ inputs.home-manager.nixosModules.home-manager ];
 | 
						|
 | 
						|
      home-manager = {
 | 
						|
        extraSpecialArgs.hasGlobalPkgs = true;
 | 
						|
        useGlobalPkgs = true;
 | 
						|
 | 
						|
        # https://github.com/nix-community/home-manager/issues/6770
 | 
						|
        # useUserPackages = true;
 | 
						|
 | 
						|
        users.${config.flake.meta.owner.username}.imports = [
 | 
						|
          (
 | 
						|
            { osConfig, ... }:
 | 
						|
 | 
						|
            {
 | 
						|
              home.stateVersion = lib.mkForce osConfig.system.stateVersion;
 | 
						|
            }
 | 
						|
          )
 | 
						|
 | 
						|
          config.flake.modules.homeManager.base
 | 
						|
        ];
 | 
						|
      };
 | 
						|
    };
 | 
						|
 | 
						|
    desktop.home-manager.users.${config.flake.meta.owner.username}.imports = [
 | 
						|
      config.flake.modules.homeManager.gui
 | 
						|
    ];
 | 
						|
  };
 | 
						|
}
 |