From d8ddf429109cba9d72bfd0628129bb17b4929482 Mon Sep 17 00:00:00 2001 From: Roman Lubij Date: Sun, 1 Mar 2026 08:36:23 +0100 Subject: [PATCH] Improve prompt, justfile --- Justfile | 8 ++++++++ common/modules/home/starship.nix | 7 +++++++ 2 files changed, 15 insertions(+) diff --git a/Justfile b/Justfile index 76b2b89..be9ca13 100644 --- a/Justfile +++ b/Justfile @@ -6,6 +6,14 @@ vm-laptop: nix build .#nixosConfigurations.dalaptop.config.system.build.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: rm -rf result rm -rf *.qcow2 diff --git a/common/modules/home/starship.nix b/common/modules/home/starship.nix index 6dc8f95..6b15f02 100644 --- a/common/modules/home/starship.nix +++ b/common/modules/home/starship.nix @@ -8,6 +8,7 @@ enable = true; settings = { format = lib.concatStrings [ + "$hostname" "\${custom.ssh_status}" "\${custom.distrobox}" "\${nix_shell}" @@ -110,6 +111,12 @@ symbol = "📦 "; style = "bold purple"; }; + + hostname = { + ssh_only = true; + format = "[](fg:#1E91D6)[$hostname](bg:#1E91D6 fg:#FFFFFF)[](fg:#1E91D6) "; + disabled = false; + }; }; }; }