From 67f39294defa6b463231fd1aad0ebb61e88fd59c Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Thu, 31 Aug 2023 14:02:30 +0200 Subject: [PATCH] refactor git --- yodaTab/git.home.nix | 17 +++++++++++++++++ yodaTab/home-manager.nix | 11 +---------- 2 files changed, 18 insertions(+), 10 deletions(-) create mode 100644 yodaTab/git.home.nix diff --git a/yodaTab/git.home.nix b/yodaTab/git.home.nix new file mode 100644 index 0000000..e76b294 --- /dev/null +++ b/yodaTab/git.home.nix @@ -0,0 +1,17 @@ +{ config, pkgs, ... }: + +{ + home-manager.users.yoda = { + + # Git config using Home Manager modules + programs.git = { + enable = true; + userName = "Daniel Langbein"; + userEmail = "daniel@systemli.org"; + aliases = { + #st = "status"; + }; + }; + + }; +} diff --git a/yodaTab/home-manager.nix b/yodaTab/home-manager.nix index 2d5ff40..78083c9 100644 --- a/yodaTab/home-manager.nix +++ b/yodaTab/home-manager.nix @@ -6,6 +6,7 @@ in { imports = [ (import "${home-manager}/nixos") + ./git.home.nix ]; /* Enable home-manager to configure GNOME */ @@ -20,16 +21,6 @@ in #home.username = "yoda"; #home.homeDirectory = "/home/yoda"; - - # Git config using Home Manager modules - programs.git = { - enable = true; - userName = "Daniel Langbein"; - userEmail = "daniel@systemli.org"; - aliases = { - #st = "status"; - }; - }; #services.gpg-agent = { # enable = true;