mirror of
https://github.com/youwen5/liminalOS.git
synced 2025-06-19 21:49:52 -07:00
feat(callisto): reduce swapfile from 32gb -> 4gb
This commit is contained in:
parent
7cff32c359
commit
a9de0fa50e
2 changed files with 11 additions and 7 deletions
|
@ -49,6 +49,17 @@
|
|||
KERNEL=="macsmc-battery", SUBSYSTEM=="power_supply", ATTR{charge_control_end_threshold}="90", ATTR{charge_control_start_threshold}="85"
|
||||
'';
|
||||
|
||||
swapDevices =
|
||||
let
|
||||
gb = x: x * 1024;
|
||||
in
|
||||
[
|
||||
{
|
||||
device = "/var/lib/swapfile";
|
||||
size = gb 4;
|
||||
}
|
||||
];
|
||||
|
||||
services.keyd = {
|
||||
enable = true;
|
||||
keyboards = {
|
||||
|
|
|
@ -38,13 +38,6 @@
|
|||
];
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{
|
||||
device = "/var/lib/swapfile";
|
||||
size = 32 * 1024;
|
||||
}
|
||||
];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue