mirror of
https://codeberg.org/mtxyz/nixconf.git
synced 2024-11-09 18:12:02 +00:00
21 lines
540 B
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.
|
|
'';
|
|
}
|