nixconf/shells/sysupdate/default.nix

21 lines
540 B
Nix

{
pkgs,
inputs,
...
}:
pkgs.mkShell {
packages = with pkgs; [
nix-output-monitor nixos-rebuild home-manager
];
NIXCONF = inputs.self;
shellHook = ''
alias sysupdate-nixos='sudo echo -n; sudo nixos-rebuild switch --log-format internal-json -v --flake "$NIXCONF" |& nom --json'
alias sysupdate-home='home-manager switch -L --flake "$NIXCONF" |& nom'
echo System Update Shell for flake at $NIXCONF
echo Run 'sysupdate-nixos' to update system,
echo then 'sysupdate-home' to update user profile.
'';
}