Browse Source

default newly built nix kodi box hostnames to nixos-kodi

Blaine Story 3 năm trước cách đây
mục cha
commit
14ab639710
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      roles/kodi-config/templates/configuration.nix.j2

+ 1 - 1
roles/kodi-config/templates/configuration.nix.j2

@@ -15,7 +15,7 @@
   boot.loader.systemd-boot.enable = true; 
 
   # Set hostname
-  networking.hostName = "{{ ansible_hostname }}";
+  networking.hostName = "{% if 'bootstrap' not in group_names %}{{ inventory_hostname }}{% else %}nixos-kodi{% endif %}";
 
   # Set time zone.
   time.timeZone = "America/Los_Angeles";