summaryrefslogtreecommitdiff
path: root/home/common
diff options
context:
space:
mode:
Diffstat (limited to 'home/common')
-rw-r--r--home/common/home.nix13
-rw-r--r--home/common/modules/git.nix15
2 files changed, 28 insertions, 0 deletions
diff --git a/home/common/home.nix b/home/common/home.nix
new file mode 100644
index 0000000..8ec0757
--- /dev/null
+++ b/home/common/home.nix
@@ -0,0 +1,13 @@
+{ config, ... }: let
+ username = config.userdata.name;
+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/common/modules/git.nix b/home/common/modules/git.nix
new file mode 100644
index 0000000..7337f7b
--- /dev/null
+++ b/home/common/modules/git.nix
@@ -0,0 +1,15 @@
+{ config, ... }: let
+ userName = config.userdata.nameFq;
+ userEmail = config.userdata.email;
+in {
+ programs.git = {
+ enable = true;
+ inherit userName;
+ inherit userEmail;
+
+ extraConfig = {
+ color.ui = "auto";
+ init.defaultBranch = "master";
+ };
+ };
+}