Explorar o código

default newly built nix kodi box hostnames to nixos-kodi

Blaine Story %!s(int64=3) %!d(string=hai) anos
pai
achega
14ab639710
Modificáronse 1 ficheiros con 1 adicións e 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";