desktop adjustments

This commit is contained in:
Schrottkatze 2024-10-03 01:32:42 +02:00
parent 6a706007c8
commit f8492fc9e9
Signed by: schrottkatze
SSH key fingerprint: SHA256:hXb3t1vINBFCiDCmhRABHX5ocdbLiKyCdKI4HK2Rbbc
3 changed files with 19 additions and 35 deletions

View file

@ -82,23 +82,7 @@
# networking.firewall.allowedTCPPorts = [ 4713 ];
systemd.services."NetworkManager-wait-online".enable = false;
systemd.services = {
create-swapfile = {
serviceConfig.Type = "oneshot";
wantedBy = ["swap-swapfile.swap"];
script = ''
swapfile="/swap/swapfile"
if [[ -f "$swapfile" ]]; then
echo "Swap file $swapfile already exists, taking no action"
else
echo "Setting up swap file $swapfile"
${pkgs.coreutils}/bin/truncate -s 0 "$swapfile"
${pkgs.e2fsprogs}/bin/chattr +C "$swapfile"
fi
'';
};
};
swapDevices = [{device = "/swap/swapfile";}];
# release channel
system.stateVersion = "22.05"; # Did you read the comment?
system.stateVersion = "24.05"; # Did you read the comment?
}