infra/common/deploy.nix

10 lines
186 B
Nix
Raw Normal View History

2024-05-29 10:45:06 +00:00
{ config, pkgs, ... }:
let
deploy = pkgs.writeShellScriptBin "deploy" ''
cd /etc/nixos
git pull
nixos-rebuild switch
'';
in { environment.systemPackages = [ deploy ]; }