summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2024-11-13 18:59:44 +0100
committerMel <einebeere@gmail.com>2024-11-13 18:59:44 +0100
commit8d9744c902882a0df01e06c5e2f9602ff147efbe (patch)
tree5747ec1947c1330f747e10b26c14931bd91acaba /modules
parent9637de35f8efbf19bc2f81ced36caf03f30a9489 (diff)
downloadnetwork-8d9744c902882a0df01e06c5e2f9602ff147efbe.tar.zst
network-8d9744c902882a0df01e06c5e2f9602ff147efbe.zip
Expand `me` module argument for nicer usage patterns
Signed-off-by: Mel <einebeere@gmail.com>
Diffstat (limited to 'modules')
-rw-r--r--modules/common.nix4
-rw-r--r--modules/www.nix4
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/common.nix b/modules/common.nix
index db6ea85..354f04b 100644
--- a/modules/common.nix
+++ b/modules/common.nix
@@ -17,13 +17,13 @@
   users.motd = ''
 
 /^  /^
-\ ' ' 7   < Hi, I'm ${util.titleCase me}
+\ ' ' 7   < Hi, I'm ${util.titleCase me.name}
 /    \
 
   '';
 
   networking = {
-    hostName = me;
+    hostName = me.name;
   
     firewall = {
       enable = true;
diff --git a/modules/www.nix b/modules/www.nix
index 1df69cf..6e84ec0 100644
--- a/modules/www.nix
+++ b/modules/www.nix
@@ -2,9 +2,9 @@
 
 let 
   rnrdUrl =
-    if me == "renard"
+    if me.renard
       then "rnrd.eu"
-      else "${me}.rnrd.eu";
+      else "${me.name}.rnrd.eu";
 in
 {
   security.acme = {