Add rebuild command with nom
This commit is contained in:
parent
9319833752
commit
641fc6a51c
|
@ -23,6 +23,14 @@ with lib;
|
|||
config.programs.fish = {
|
||||
enable = true;
|
||||
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!
|
||||
nx = {
|
||||
body = ''
|
||||
|
|
Loading…
Reference in a new issue