The core snap offers a few configuration options which allow customization of how the system works.
A configuration option of the core snap can be set via the snap set command as for any snap:
$ snap set core some.option="some value"
The current value of an option can be retrieved via the snap get command:
$ snap get core some.option
The following configuration options are currently supported:
#refresh.schedule
Allows defining the refresh schedule within a 24h window.
For example, to specify updates only between 4:00-7:00 in the morning and 19:00-22:00 in the evening:
$ sudo snap set core refresh.schedule=4:00-7:00/19:00-21:00
Note that a refresh may happen outside the scheduled window if the last refresh happened too far behind.
Available since snapd 2.25.
proxy.{http,https,ftp}
These options may be set to change the proxies to be used by the system when communicating with external sites that speak the respective protocols.
Available since snapd 2.28.
service.ssh.disable
May be set to true for disabling the SSH service at startup.
Available since snapd 2.22.
system.power-key-action
Defines the behavior of the system when the power key is pressed.
May be set to one of:
- ignore
- poweroff
- reboot
- halt
- kexec
- suspend
- hibernate
- hybrid-sleep
- lock
Available since snapd 2.23.
pi-config
Changes various settings that land onto Rasperry Pi’s traditional config.txt file.
The following options are currently available for tuning:
- pi-config.disable-overscan
- pi-config.framebuffer-width
- pi-config.framebuffer-height
- pi-config.framebuffer-depth
- pi-config.framebuffer-ignore_alpha
- pi-config.overscan-left
- pi-config.overscan-right
- pi-config.overscan-top
- pi-config.overscan-bottom
- pi-config.overscan-scale
- pi-config.display-rotate
- pi-config.hdmi-group
- pi-config.hdmi-mode
- pi-config.hdmi-drive
- pi-config.avoid-warnings
- pi-config.gpu-mem-256
- pi-config.gpu-mem-512
- pi-config.gpu-mem
Please see the Raspberry Pi documentation for details on their meanings.