From d339cc687d9db9066da9fa2e4f5532f96b512dd1 Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Mon, 12 Apr 2021 11:07:55 -0400 Subject: feat(grfn/home): Script to rebuild home-manager Looks kinda like rebuild-mugwump, only for home yes, yes, this could gc halfway through, that's so unlikely that I don't care Change-Id: Iab3fdac15796e9f8158a9778b897bc3fe88e536e Reviewed-on: https://cl.tvl.fyi/c/depot/+/2942 Reviewed-by: grfn Tested-by: BuildkiteCI --- users/grfn/system/home/modules/common.nix | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'users/grfn/system') diff --git a/users/grfn/system/home/modules/common.nix b/users/grfn/system/home/modules/common.nix index 02935aaa50f5..882488763d32 100644 --- a/users/grfn/system/home/modules/common.nix +++ b/users/grfn/system/home/modules/common.nix @@ -54,6 +54,12 @@ ssh mugwump sudo nix-env -p /nix/var/nix/profiles/system --set $system ssh mugwump sudo $system/bin/switch-to-configuration switch '') + (writeShellScriptBin "rebuild-home" '' + set -eo pipefail + cd ~/code/depot + nix build -f . users.grfn.system.home.$(hostname)Home -o /tmp/home + /tmp/home/activate + '') ]; programs.ssh = { -- cgit 1.4.1