diff --git a/cookbooks/boxcutter_site_settings/recipes/default.rb b/cookbooks/boxcutter_site_settings/recipes/default.rb index 6c5464e..f2a5006 100644 --- a/cookbooks/boxcutter_site_settings/recipes/default.rb +++ b/cookbooks/boxcutter_site_settings/recipes/default.rb @@ -46,6 +46,14 @@ end end + package 'snapd' do + action :upgrade + end + + service 'snapd' do + action [:eanble, :start] + end + # Some snap applications will refuse to start if the snap daemon is disabled # so instead put auto-updates on pause # https://snapcraft.io/docs/managing-updates @@ -55,6 +63,12 @@ only_if { ::File.exist?('/usr/bin/snap') } action :run end + + file '/etc/update-manager/release-upgrades' do + owner node.root_user + group node.root_group + mode '0644' + end end include_recipe 'boxcutter_users' diff --git a/cookbooks/boxcutter_ubuntu_desktop/files/00_default b/cookbooks/boxcutter_ubuntu_desktop/files/00_default index 9a5b694..084815e 100644 --- a/cookbooks/boxcutter_ubuntu_desktop/files/00_default +++ b/cookbooks/boxcutter_ubuntu_desktop/files/00_default @@ -1,2 +1,4 @@ [org/gnome/desktop/screensaver] lock-enabled=false +[org/gnome/desktop/session] +idle-delay=uint32 0 diff --git a/cookbooks/boxcutter_ubuntu_desktop/recipes/default.rb b/cookbooks/boxcutter_ubuntu_desktop/recipes/default.rb index 5c30f1d..ff2178b 100644 --- a/cookbooks/boxcutter_ubuntu_desktop/recipes/default.rb +++ b/cookbooks/boxcutter_ubuntu_desktop/recipes/default.rb @@ -56,6 +56,7 @@ mode '0644' end +# gdm settings are stored in dconf %w{ /etc/dconf /etc/dconf/db