Skip to content

Commit

Permalink
Disble screen updates and upgrade notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorific committed Dec 17, 2024
1 parent 4211911 commit 6c94a06
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
14 changes: 14 additions & 0 deletions cookbooks/boxcutter_site_settings/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'
Expand Down
2 changes: 2 additions & 0 deletions cookbooks/boxcutter_ubuntu_desktop/files/00_default
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
[org/gnome/desktop/screensaver]
lock-enabled=false
[org/gnome/desktop/session]
idle-delay=uint32 0
1 change: 1 addition & 0 deletions cookbooks/boxcutter_ubuntu_desktop/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
mode '0644'
end

# gdm settings are stored in dconf
%w{
/etc/dconf
/etc/dconf/db
Expand Down

0 comments on commit 6c94a06

Please sign in to comment.