add a deploy helper binary
This commit is contained in:
parent
8113d2b066
commit
3d23da27f6
2 changed files with 11 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
{
|
||||
imports = [
|
||||
./secrets-permissions.nix
|
||||
./deploy.nix
|
||||
];
|
||||
|
||||
# Enable the OpenSSH daemon
|
||||
|
|
10
common/deploy.nix
Normal file
10
common/deploy.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
let
|
||||
deploy = pkgs.writeShellScriptBin "deploy" ''
|
||||
cd /etc/nixos
|
||||
git pull
|
||||
nixos-rebuild switch
|
||||
'';
|
||||
|
||||
in { environment.systemPackages = [ deploy ]; }
|
Loading…
Reference in a new issue