conf: fix globalArgs
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
		@@ -1,13 +1,11 @@
 | 
				
			|||||||
{ inputs, self, ... }:
 | 
					{ inputs, self, ... }:
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  config._module.args.globalArgs = {
 | 
					  config._module.args.globalArgs = {
 | 
				
			||||||
    _module.args = {
 | 
					    inherit inputs self;
 | 
				
			||||||
      inherit inputs self;
 | 
					    flake = self;
 | 
				
			||||||
      flake = self;
 | 
					    conf = {
 | 
				
			||||||
      conf = {
 | 
					      colors = import ./colors.nix;
 | 
				
			||||||
        colors = import ./colors.nix;
 | 
					      network = import ./network.nix;
 | 
				
			||||||
        network = import ./network.nix;
 | 
					 | 
				
			||||||
      };
 | 
					 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3,7 +3,6 @@ let
 | 
				
			|||||||
  common = [
 | 
					  common = [
 | 
				
			||||||
    ./common/zsh.nix
 | 
					    ./common/zsh.nix
 | 
				
			||||||
    ./common/programs.nix
 | 
					    ./common/programs.nix
 | 
				
			||||||
    globalArgs
 | 
					 | 
				
			||||||
  ];
 | 
					  ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  mkPkgs = system: import inputs.nixpkgs {
 | 
					  mkPkgs = system: import inputs.nixpkgs {
 | 
				
			||||||
@@ -15,6 +14,8 @@ let
 | 
				
			|||||||
    };
 | 
					    };
 | 
				
			||||||
    overlays = [ self.overlays.default ];
 | 
					    overlays = [ self.overlays.default ];
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  extraSpecialArgs = globalArgs;
 | 
				
			||||||
in
 | 
					in
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  flake.homeConfigurations =
 | 
					  flake.homeConfigurations =
 | 
				
			||||||
@@ -24,11 +25,11 @@ in
 | 
				
			|||||||
        ./natto
 | 
					        ./natto
 | 
				
			||||||
        ./common/laptop.nix
 | 
					        ./common/laptop.nix
 | 
				
			||||||
        inputs.agenix.homeManagerModules.default
 | 
					        inputs.agenix.homeManagerModules.default
 | 
				
			||||||
        inputs.hyprland.homeManagerModules.default
 | 
					 | 
				
			||||||
      ] ++ common;
 | 
					      ] ++ common;
 | 
				
			||||||
    in
 | 
					    in
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
      natto-laptop = inputs.home-manager.lib.homeManagerConfiguration {
 | 
					      natto-laptop = inputs.home-manager.lib.homeManagerConfiguration {
 | 
				
			||||||
 | 
					        inherit extraSpecialArgs;
 | 
				
			||||||
        modules = nattoModules ++ [
 | 
					        modules = nattoModules ++ [
 | 
				
			||||||
          { isLaptop = true; }
 | 
					          { isLaptop = true; }
 | 
				
			||||||
        ];
 | 
					        ];
 | 
				
			||||||
@@ -36,6 +37,7 @@ in
 | 
				
			|||||||
      };
 | 
					      };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      natto = inputs.home-manager.lib.homeManagerConfiguration {
 | 
					      natto = inputs.home-manager.lib.homeManagerConfiguration {
 | 
				
			||||||
 | 
					        inherit extraSpecialArgs;
 | 
				
			||||||
        modules = nattoModules;
 | 
					        modules = nattoModules;
 | 
				
			||||||
        pkgs = mkPkgs "x86_64-linux";
 | 
					        pkgs = mkPkgs "x86_64-linux";
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
@@ -44,6 +46,7 @@ in
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    // {
 | 
					    // {
 | 
				
			||||||
      spark = inputs.home-manager.lib.homeManagerConfiguration {
 | 
					      spark = inputs.home-manager.lib.homeManagerConfiguration {
 | 
				
			||||||
 | 
					        inherit extraSpecialArgs;
 | 
				
			||||||
        modules = [{
 | 
					        modules = [{
 | 
				
			||||||
          home = {
 | 
					          home = {
 | 
				
			||||||
            homeDirectory = "/home/spark";
 | 
					            homeDirectory = "/home/spark";
 | 
				
			||||||
@@ -55,6 +58,7 @@ in
 | 
				
			|||||||
      };
 | 
					      };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      bat = inputs.home-manager.lib.homeManagerConfiguration {
 | 
					      bat = inputs.home-manager.lib.homeManagerConfiguration {
 | 
				
			||||||
 | 
					        inherit extraSpecialArgs;
 | 
				
			||||||
        modules = [{
 | 
					        modules = [{
 | 
				
			||||||
          home = {
 | 
					          home = {
 | 
				
			||||||
            homeDirectory = "/home/bat";
 | 
					            homeDirectory = "/home/bat";
 | 
				
			||||||
@@ -66,6 +70,7 @@ in
 | 
				
			|||||||
      };
 | 
					      };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      spin = inputs.home-manager.lib.homeManagerConfiguration {
 | 
					      spin = inputs.home-manager.lib.homeManagerConfiguration {
 | 
				
			||||||
 | 
					        inherit extraSpecialArgs;
 | 
				
			||||||
        modules = [{
 | 
					        modules = [{
 | 
				
			||||||
          home = {
 | 
					          home = {
 | 
				
			||||||
            homeDirectory = "/home/spin";
 | 
					            homeDirectory = "/home/spin";
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,8 @@
 | 
				
			|||||||
{ pkgs, config, conf, inputs, ... }:
 | 
					{ pkgs, config, conf, inputs, ... }:
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  imports = [
 | 
					  imports = [
 | 
				
			||||||
 | 
					    inputs.hyprland.homeManagerModules.default
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    ./ags
 | 
					    ./ags
 | 
				
			||||||
    # ./eww
 | 
					    # ./eww
 | 
				
			||||||
  ];
 | 
					  ];
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,7 +4,9 @@ let
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  commonModules = [
 | 
					  commonModules = [
 | 
				
			||||||
    ./nvim.nix
 | 
					    ./nvim.nix
 | 
				
			||||||
    globalArgs
 | 
					    {
 | 
				
			||||||
 | 
					      _module.args = globalArgs;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
  ];
 | 
					  ];
 | 
				
			||||||
  desktopModules = [
 | 
					  desktopModules = [
 | 
				
			||||||
    ./xorg.nix
 | 
					    ./xorg.nix
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user