Compare commits

...

2 Commits

Author SHA1 Message Date
Tom Alexander
b1b2ea2109
Add git hide and git unhide scripts. 2026-02-14 12:33:06 -05:00
Tom Alexander
1211bc1c44
Remove programs.adb.enable. 2026-02-14 12:33:06 -05:00
2 changed files with 13 additions and 1 deletions

View File

@ -18,7 +18,9 @@
};
config = lib.mkIf config.me.android.enable {
programs.adb.enable = true;
environment.systemPackages = with pkgs; [
android-tools
];
users.users.talexander.extraGroups = [ "adbusers" ];
};
}

View File

@ -16,6 +16,14 @@ let
}:$PATH"
exec ${package}/bin/${prog} "''${@}"
'';
git_hide = pkgs.writeShellScriptBin "git-hide" ''
git add --intent-to-add "''${@}"
git update-index --skip-worktree --assume-unchange "''${@}"
'';
git_unhide = pkgs.writeShellScriptBin "git-unhide" ''
git update-index --no-skip-worktree --no-assume-unchange "''${@}"
git reset "''${@}"
'';
in
{
imports = [ ];
@ -41,6 +49,8 @@ in
{
environment.systemPackages = with pkgs; [
my_git
git_hide
git_unhide
];
}
(lib.mkIf (config.me.git.config != null) {