parent
0fd7817932
commit
3f288f3e8f
8 changed files with 25 additions and 19 deletions
common/home
|
@ -1,6 +1,6 @@
|
|||
# Check git status of nix configs
|
||||
fetchNix() {(
|
||||
cd ~/.nix || exit 1
|
||||
cd "$FLAKE" || exit 1
|
||||
git fetch --all --quiet
|
||||
GIT=$(git -c color.status=always status |
|
||||
grep -v -e "On branch" \
|
||||
|
|
|
@ -1,10 +1,4 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (config.vars) mainUser;
|
||||
in {
|
||||
{pkgs, ...}: {
|
||||
programs = {
|
||||
git = {
|
||||
enable = true;
|
||||
|
@ -75,9 +69,10 @@ in {
|
|||
runtimeInputs = [git];
|
||||
|
||||
text = ''
|
||||
DIR=''${1:-"/home/${mainUser}/.nix"}
|
||||
DIR=''${1:-"$FLAKE"}
|
||||
|
||||
cd "$DIR" || exit 1
|
||||
|
||||
cd "$DIR"
|
||||
git add flake.lock
|
||||
git commit -m 'chore: update flake.lock'
|
||||
git push
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue