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, ... }:
{
config._module.args.globalArgs = {
_module.args = {
inherit inputs self;
flake = self;
conf = {
@@ -9,5 +8,4 @@
network = import ./network.nix;
};
};
};
}

View File

@@ -3,7 +3,6 @@ let
common = [
./common/zsh.nix
./common/programs.nix
globalArgs
];
mkPkgs = system: import inputs.nixpkgs {
@@ -15,6 +14,8 @@ let
};
overlays = [ self.overlays.default ];
};
extraSpecialArgs = globalArgs;
in
{
flake.homeConfigurations =
@@ -24,11 +25,11 @@ in
./natto
./common/laptop.nix
inputs.agenix.homeManagerModules.default
inputs.hyprland.homeManagerModules.default
] ++ common;
in
{
natto-laptop = inputs.home-manager.lib.homeManagerConfiguration {
inherit extraSpecialArgs;
modules = nattoModules ++ [
{ isLaptop = true; }
];
@@ -36,6 +37,7 @@ in
};
natto = inputs.home-manager.lib.homeManagerConfiguration {
inherit extraSpecialArgs;
modules = nattoModules;
pkgs = mkPkgs "x86_64-linux";
};
@@ -44,6 +46,7 @@ in
// {
spark = inputs.home-manager.lib.homeManagerConfiguration {
inherit extraSpecialArgs;
modules = [{
home = {
homeDirectory = "/home/spark";
@@ -55,6 +58,7 @@ in
};
bat = inputs.home-manager.lib.homeManagerConfiguration {
inherit extraSpecialArgs;
modules = [{
home = {
homeDirectory = "/home/bat";
@@ -66,6 +70,7 @@ in
};
spin = inputs.home-manager.lib.homeManagerConfiguration {
inherit extraSpecialArgs;
modules = [{
home = {
homeDirectory = "/home/spin";

View File

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

View File

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