From 279ff6251173e161cc50d8ae03cb3cd2e90a61a4 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Mon, 3 Jun 2024 18:28:35 +0530 Subject: global: init global contains shared data between home-manager and nixos modules. they're just structured data, it's doesn't contain any module functionally in the normal sense, an example is preferred monospace font or user's mail id `config.global.userdata.email` --- home/common/home.nix | 2 +- home/common/modules/git.nix | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'home/common') diff --git a/home/common/home.nix b/home/common/home.nix index 4ee0d94..b2ca191 100644 --- a/home/common/home.nix +++ b/home/common/home.nix @@ -1,5 +1,5 @@ { config, ... }: let - username = config.userdata.name; + username = config.global.userdata.name; in { imports = [ ./modules/git.nix diff --git a/home/common/modules/git.nix b/home/common/modules/git.nix index 7337f7b..1f10da7 100644 --- a/home/common/modules/git.nix +++ b/home/common/modules/git.nix @@ -1,6 +1,6 @@ { config, ... }: let - userName = config.userdata.nameFq; - userEmail = config.userdata.email; + userName = config.global.userdata.nameFq; + userEmail = config.global.userdata.email; in { programs.git = { enable = true; -- cgit v1.2.3