infra/common/deploy.nix
2024-05-29 12:47:24 +02:00

10 lines
No EOL
186 B
Nix

{ config, pkgs, ... }:
let
deploy = pkgs.writeShellScriptBin "deploy" ''
cd /etc/nixos
git pull
nixos-rebuild switch
'';
in { environment.systemPackages = [ deploy ]; }