mirror of
https://github.com/JaxTheWolf/nixos.git
synced 2026-04-01 02:00:22 +02:00
Improve prompt, justfile
This commit is contained in:
8
Justfile
8
Justfile
@@ -6,6 +6,14 @@ vm-laptop:
|
|||||||
nix build .#nixosConfigurations.dalaptop.config.system.build.vm
|
nix build .#nixosConfigurations.dalaptop.config.system.build.vm
|
||||||
./result/bin/run-dalaptop-vm
|
./result/bin/run-dalaptop-vm
|
||||||
|
|
||||||
|
build:
|
||||||
|
nix build .#nixosConfigurations.epiquev2.config.system.build.vm
|
||||||
|
nix build .#nixosConfigurations.dalaptop.config.system.build.vm
|
||||||
|
|
||||||
|
upload:
|
||||||
|
attic push my-config /run/current-system
|
||||||
|
attic push my-config result
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf result
|
rm -rf result
|
||||||
rm -rf *.qcow2
|
rm -rf *.qcow2
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
format = lib.concatStrings [
|
format = lib.concatStrings [
|
||||||
|
"$hostname"
|
||||||
"\${custom.ssh_status}"
|
"\${custom.ssh_status}"
|
||||||
"\${custom.distrobox}"
|
"\${custom.distrobox}"
|
||||||
"\${nix_shell}"
|
"\${nix_shell}"
|
||||||
@@ -110,6 +111,12 @@
|
|||||||
symbol = "📦 ";
|
symbol = "📦 ";
|
||||||
style = "bold purple";
|
style = "bold purple";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
hostname = {
|
||||||
|
ssh_only = true;
|
||||||
|
format = "[](fg:#1E91D6)[$hostname](bg:#1E91D6 fg:#FFFFFF)[](fg:#1E91D6) ";
|
||||||
|
disabled = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user