From beabcee86517583521881bd0e24533638923ab0c Mon Sep 17 00:00:00 2001 From: Jimbo Date: Thu, 29 Aug 2024 03:13:41 -0400 Subject: [PATCH] Add extra commands for updating home-manager only --- home-manager/jimbo_desktop.nix | 8 +++----- home-manager/jimbo_server.nix | 7 +++---- home-manager/jimbo_ssh.nix | 4 +--- 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/home-manager/jimbo_desktop.nix b/home-manager/jimbo_desktop.nix index 62d1b55..64bbbfb 100644 --- a/home-manager/jimbo_desktop.nix +++ b/home-manager/jimbo_desktop.nix @@ -43,11 +43,9 @@ shellAliases = let auth = import ./common/auth.nix; in { - nixdate = '' - ${auth.method} nixos-rebuild switch --flake /etc/nixos/.#JimDesktop; - home-manager switch --flake /etc/nixos/.#jimbo@JimDesktop; - notify-send "NixOS switch finished." - ''; + sysdate = "${auth.method} nixos-rebuild switch --flake /etc/nixos/.#JimDesktop"; + homedate = "home-manager switch --flake /etc/nixos/.#jimbo@JimDesktop"; + nixdate = "sysdate; homedate; notify-send 'NixOS switch done.'"; }; }; diff --git a/home-manager/jimbo_server.nix b/home-manager/jimbo_server.nix index 7f13a3d..4acfca8 100644 --- a/home-manager/jimbo_server.nix +++ b/home-manager/jimbo_server.nix @@ -11,10 +11,9 @@ shellAliases = let auth = import ./common/auth.nix; in { - nixdate = '' - ${auth.method} nixos-rebuild switch --flake /etc/nixos/.#JimServer; - home-manager switch --flake /etc/nixos/.#jimbo@JimServer; - ''; + sysdate = "${auth.method} nixos-rebuild switch --flake /etc/nixos/.#JimServer"; + homedate = "home-manager switch --flake /etc/nixos/.#jimbo@JimServer"; + nixdate = "sysdate; homedate; notify-send 'NixOS switch done.'"; }; }; } diff --git a/home-manager/jimbo_ssh.nix b/home-manager/jimbo_ssh.nix index f3e3021..35b588d 100644 --- a/home-manager/jimbo_ssh.nix +++ b/home-manager/jimbo_ssh.nix @@ -10,9 +10,7 @@ shellAliases = let auth = import ./common/auth.nix; in { - nixdate = '' - home-manager switch --flake ~/.home-manager/.#jimbo@SSH --extra-experimental-features "nix-command flakes" - ''; + homedate = "home-manager switch --flake ~/.home-manager/.#jimbo@SSH --extra-experimental-features 'nix-command flakes'"; }; }; }