From 566ec67fdd06103a77f942fc44fb3592d7b581e0 Mon Sep 17 00:00:00 2001 From: CherryKitten Date: Sat, 6 Apr 2024 12:19:07 +0200 Subject: [PATCH] some more work laptop things --- flake.nix | 2 +- modules/home/git.nix | 1 + users/sammy@chansey/home.nix | 6 ++++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index a9af343..bfa27dd 100644 --- a/flake.nix +++ b/flake.nix @@ -65,7 +65,7 @@ mkHome = { user ? "sammy", hostname ? null }: lib.homeManagerConfiguration { inherit pkgs; - modules = [ ./users/${user} ] ++ lib.optional (!isNull hostname) (./. + "/users/${user}@${hostname}"); + modules = [ ./users/${user}/home.nix ] ++ lib.optional (!isNull hostname) (./. + "/users/${user}@${hostname}/home.nix"); extraSpecialArgs = { inherit inputs outputs; pkgs-unstable = import nixpkgs-unstable { system = "x86_64-linux"; }; diff --git a/modules/home/git.nix b/modules/home/git.nix index 5daa2ec..580d380 100644 --- a/modules/home/git.nix +++ b/modules/home/git.nix @@ -5,6 +5,7 @@ init = { defaultBranch = "main"; }; core = { editor = "nvim"; }; pull.rebase = true; + push.autoSetupRemote = true; }; aliases = { a = "add"; diff --git a/users/sammy@chansey/home.nix b/users/sammy@chansey/home.nix index 01ac48b..20e9b82 100644 --- a/users/sammy@chansey/home.nix +++ b/users/sammy@chansey/home.nix @@ -2,4 +2,10 @@ programs.ssh.includes = [ "./famedly-config" ]; + programs.git.includes = [ + { + path = "~/famedly/.gitconfig"; + condition = "gitdir:~/famedly/"; + } + ]; }