Explorar el Código

default newly built nix kodi box hostnames to nixos-kodi

Blaine Story hace 3 años
padre
commit
14ab639710
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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";