force with lease
This commit is contained in:
parent
bb1e8ab317
commit
60557b9ca8
|
@ -7,10 +7,9 @@
|
||||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { nixpkgs, home-manager, ... }@attrs: {
|
outputs = inputs@{ nixpkgs, home-manager, ... }: {
|
||||||
nixosConfigurations.nixos76 = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.nixos76 = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs = attrs;
|
|
||||||
modules = [
|
modules = [
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
if [ -z "$(git status --porcelain)" ]
|
if [ -z "$(git status --porcelain)" ]
|
||||||
then
|
then
|
||||||
git push
|
git push --force-with-lease
|
||||||
sudo nixos-rebuild switch --flake "git+https://git.atauno.com/atau/nixos-config.git"
|
sudo nixos-rebuild switch --flake "git+https://git.atauno.com/atau/nixos-config.git#nixos76"
|
||||||
else
|
else
|
||||||
echo "Git working directory is unclean, please commit changes"
|
echo "Git working directory is unclean, please commit changes"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in New Issue