Skip to content

Commit

Permalink
p-3400: optimize for SSD
Browse files Browse the repository at this point in the history
  • Loading branch information
lopsided98 committed Sep 17, 2023
1 parent 359616a commit b237904
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions machines/p-3400/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@

luks.devices.root = {
device = "/dev/disk/by-uuid/9911ded5-61bf-4cda-9c79-faf743799d90";
# Supposed to increase performance of SSDs
bypassWorkqueues = true;
allowDiscards = true;
crypttabExtraOpts = [ "tries=0" ];
};

Expand Down Expand Up @@ -98,6 +101,9 @@
];
};

# Enable SSD TRIM
services.fstrim.enable = true;

boot.secrets = secrets.mkSecret secrets.p-3400.tinyssh.hostEd25519Key {};
systemd.secrets.sshd = {
units = [ "[email protected]" ];
Expand Down

0 comments on commit b237904

Please sign in to comment.