aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-07-11 10:26:37 -0500
committerFrederick Muriuki Muriithi2024-07-12 11:43:38 -0500
commita2025885a8546a94e671704149c9538cda990829 (patch)
tree82b9ff5eae9b5c3a192e38df9b9ea9331fbdd0cb
parentedda1c70986e35c5c2af2f671152542e28ce212b (diff)
downloadgn-machines-a2025885a8546a94e671704149c9538cda990829.tar.gz
Indicate environment in container hostnames
While it is a tiny change, it does help to have an explicit indication of what container you are currently working with, especially when you need to do specific tasks inside the container itself with something like `nsenter …` or `guix container exec …`. With this commit, instead of a generic prompt like: `root@genenetwork /#`, you get a more specific prompt such as `root@genenetwork-production /#` which goes some ways in avoiding mistakes.
-rw-r--r--fallback.scm2
-rw-r--r--production.scm2
2 files changed, 2 insertions, 2 deletions
diff --git a/fallback.scm b/fallback.scm
index 82f0a54..e222238 100644
--- a/fallback.scm
+++ b/fallback.scm
@@ -29,7 +29,7 @@
(forge socket))
(operating-system
- (host-name "genenetwork")
+ (host-name "genenetwork-fallback")
(timezone "UTC")
(locale "en_US.utf8")
(bootloader (bootloader-configuration
diff --git a/production.scm b/production.scm
index 3115b59..f6ed157 100644
--- a/production.scm
+++ b/production.scm
@@ -27,7 +27,7 @@
(forge socket))
(operating-system
- (host-name "genenetwork")
+ (host-name "genenetwork-production")
(timezone "UTC")
(locale "en_US.utf8")
(bootloader (bootloader-configuration