diff --git a/flake.lock b/flake.lock index 86a86f3..ab24eea 100644 --- a/flake.lock +++ b/flake.lock @@ -426,8 +426,8 @@ "pre-commit-hooks": "pre-commit-hooks" }, "locked": { - "lastModified": 1727381443, - "narHash": "sha256-ndklrgp7ufcZXAaOl2LNuwAbKSVcxrI1YDUe3bPGTfE=", + "lastModified": 1727381845, + "narHash": "sha256-b6qhm/u/ZGMQRW2TcVj2k4lcXIJumm4eZB1AevNk2o8=", "path": "/home/pagedmov/sysflakes/glasshouse-desktop/dotfiles/packages/nixvim", "type": "path" }, diff --git a/glasshouse-desktop/modules/zshell.nix b/glasshouse-desktop/modules/zshell.nix index d054b9f..dd4bd7b 100644 --- a/glasshouse-desktop/modules/zshell.nix +++ b/glasshouse-desktop/modules/zshell.nix @@ -200,6 +200,7 @@ screengrab() { nixswitch() { cd "$HOME/sysflakes" + nix flake update gen=$(readlink /nix/var/nix/profiles/system | sed 's/.*system-\([0-9]*\)-link/\1/') gen=$((gen + 1)) @@ -208,7 +209,6 @@ nixswitch() { git commit -m "Commit for generation $gen" git push fi - nix flake update sudo nixos-rebuild switch --flake "$HOME/sysflakes#glasshouse" cd $OLDPWD }