#
# Cookbook Name:: archlinux
# Recipe:: default
#
# Copyright (C) 2013 Logan Koester
# 
# All rights reserved - Do Not Redistribute
#

# Chef's SystemD provider is hardcoded to /bin, which is incorrect on Arch Linux.
if node['platform'] == 'arch'
  link '/bin/systemctl' do
    to '/usr/bin/systemctl'
  end
end

#
# Cookbook Name:: archlinux
# Recipe:: default
#
# Copyright (C) 2013 Logan Koester
# 
# All rights reserved - Do Not Redistribute
#

# Chef's SystemD provider is hardcoded to /bin, which is incorrect on Arch Linux.
if node['platform'] == 'arch'
  link '/bin/systemctl' do
    to '/usr/bin/systemctl'
  end
end

execute 'Generate locales' do
  command 'locale-gen'
end

execute 'Set system-wide locale' do
  command 'localectl set-locale LANG="en_US.UTF-8"'
end

Set system locale to en_US.UTF-8
Set system locale to en_US.UTF-8
