Add rebuild command with nom

This commit is contained in:
Natsu Kagami 2024-03-08 04:29:58 +01:00
parent 9319833752
commit 641fc6a51c
Signed by: nki
GPG key ID: 55A032EB38B49ADB

View file

@ -23,6 +23,14 @@ with lib;
config.programs.fish = { config.programs.fish = {
enable = true; enable = true;
functions = { functions = {
rebuild = {
body = ''
command sudo -v && \
command sudo nixos-rebuild --flake ~/.config/nixpkgs -L --log-format internal-json -v $argv \
&| ${pkgs.nix-output-monitor}/bin/nom --json
'';
wraps = "nixos-rebuild";
};
# Simplify nix usage! # Simplify nix usage!
nx = { nx = {
body = '' body = ''