Add rebuild command with nom
This commit is contained in:
parent
9319833752
commit
641fc6a51c
|
@ -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 = ''
|
||||||
|
|
Loading…
Reference in a new issue