diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-03-08 17:42:39 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-03-08 19:19:44 +0530 |
commit | 3ea06b0f61da129b6cd6a4f4d8648f051c30a74c (patch) | |
tree | 3143ab50492a892f785b2db71ea791b6abd46e19 /home-manager | |
parent | 74cf6b4fc52e6662c95163f17786ff0599889e06 (diff) |
home-manager: init
Diffstat (limited to 'home-manager')
-rw-r--r-- | home-manager/common/home.nix | 13 | ||||
-rw-r--r-- | home-manager/common/modules/git.nix | 15 |
2 files changed, 28 insertions, 0 deletions
diff --git a/home-manager/common/home.nix b/home-manager/common/home.nix new file mode 100644 index 0000000..b5886d4 --- /dev/null +++ b/home-manager/common/home.nix @@ -0,0 +1,13 @@ +{ config, ... }: let + username = config.userdata.user; +in { + imports = [ ./modules/git.nix ]; + + programs.home-manager.enable = true; + + home = { + inherit username; + stateVersion = "23.11"; + homeDirectory = "/home/${config.home.username}"; + }; +} diff --git a/home-manager/common/modules/git.nix b/home-manager/common/modules/git.nix new file mode 100644 index 0000000..df0407e --- /dev/null +++ b/home-manager/common/modules/git.nix @@ -0,0 +1,15 @@ +{ config, ... }: let + userName = config.userdata.userFq; + userEmail = config.userdata.email; +in { + programs.git = { + enable = true; + inherit userName; + inherit userEmail; + + extraConfig = { + color.ui = "auto"; + init.defaultBranch = "master"; + }; + }; +} |