nixconf/shells/sysupdate/default.nix

22 lines
540 B
Nix
Raw Normal View History

2024-01-18 02:05:00 +00:00
{
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.
'';
}