conf: fix globalArgs

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2024-06-01 18:02:50 +05:30
parent c86fb8b6d3
commit f6f228f990
4 changed files with 17 additions and 10 deletions

View File

@@ -1,7 +1,6 @@
{ 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 = {
@@ -9,5 +8,4 @@
network = import ./network.nix; network = import ./network.nix;
}; };
}; };
};
} }

View File

@@ -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";

View File

@@ -1,6 +1,8 @@
{ pkgs, config, conf, inputs, ... }: { pkgs, config, conf, inputs, ... }:
{ {
imports = [ imports = [
inputs.hyprland.homeManagerModules.default
./ags ./ags
# ./eww # ./eww
]; ];

View File

@@ -4,7 +4,9 @@ let
commonModules = [ commonModules = [
./nvim.nix ./nvim.nix
globalArgs {
_module.args = globalArgs;
}
]; ];
desktopModules = [ desktopModules = [
./xorg.nix ./xorg.nix