summaryrefslogtreecommitdiff
path: root/os/common
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-06-03 18:28:35 +0530
committersinanmohd <sinan@sinanmohd.com>2024-06-03 18:39:43 +0530
commit279ff6251173e161cc50d8ae03cb3cd2e90a61a4 (patch)
tree971260447397a872be4b051b55864b482acc4a57 /os/common
parent4311eaf183976752acdf5624ea68516cac6f0d94 (diff)
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`
Diffstat (limited to 'os/common')
-rw-r--r--os/common/configuration.nix4
-rw-r--r--os/common/modules/dev.nix2
2 files changed, 3 insertions, 3 deletions
diff --git a/os/common/configuration.nix b/os/common/configuration.nix
index 76fe33c..a3dd494 100644
--- a/os/common/configuration.nix
+++ b/os/common/configuration.nix
@@ -2,8 +2,8 @@
let
host = config.networking.hostName;
- user = config.userdata.name;
- email = config.userdata.email;
+ user = config.global.userdata.name;
+ email = config.global.userdata.email;
in
{
disabledModules = [
diff --git a/os/common/modules/dev.nix b/os/common/modules/dev.nix
index 285dfba..eb00619 100644
--- a/os/common/modules/dev.nix
+++ b/os/common/modules/dev.nix
@@ -1,7 +1,7 @@
{ config, pkgs, ... }:
let
- user = config.userdata.name;
+ user = config.global.userdata.name;
in
{
users.users.${user}.packages = with pkgs; [