1
0
Fork 0

Enable fstrim

This commit is contained in:
Aires 2024-06-09 14:36:40 -04:00
parent 02aa15162e
commit 6833d490b4
6 changed files with 14 additions and 11 deletions

View file

@ -30,7 +30,7 @@
"/" = { "/" = {
device = "/dev/disk/by-uuid/76d67291-5aed-4f2a-b71f-1c2871cefe24"; device = "/dev/disk/by-uuid/76d67291-5aed-4f2a-b71f-1c2871cefe24";
fsType = "btrfs"; fsType = "btrfs";
options = [ "subvol=@,compress=zstd" ]; options = [ "subvol=@,compress=zstd,discard" ];
}; };
"/boot" = { "/boot" = {
device = "/dev/disk/by-uuid/0C53-A645"; device = "/dev/disk/by-uuid/0C53-A645";

View file

@ -42,12 +42,12 @@
"/" = { "/" = {
device = "/dev/disk/by-uuid/2c76c660-3573-4622-8771-f23fa7ee302a"; device = "/dev/disk/by-uuid/2c76c660-3573-4622-8771-f23fa7ee302a";
fsType = "btrfs"; fsType = "btrfs";
options = [ "subvol=@,compress=zstd" ]; options = [ "subvol=@,compress=zstd,discard" ];
}; };
"/home" = { "/home" = {
device = "/dev/disk/by-uuid/2c76c660-3573-4622-8771-f23fa7ee302a"; device = "/dev/disk/by-uuid/2c76c660-3573-4622-8771-f23fa7ee302a";
fsType = "btrfs"; fsType = "btrfs";
options = [ "subvol=@home,compress=zstd" ]; options = [ "subvol=@home,compress=zstd,discard" ];
}; };
"/swap" = { "/swap" = {
device = "/dev/disk/by-uuid/2c76c660-3573-4622-8771-f23fa7ee302a"; device = "/dev/disk/by-uuid/2c76c660-3573-4622-8771-f23fa7ee302a";

View file

@ -75,7 +75,7 @@
"/" = { "/" = {
device = "/dev/disk/by-uuid/b34afd29-94ff-421b-bb96-8497951abf58"; device = "/dev/disk/by-uuid/b34afd29-94ff-421b-bb96-8497951abf58";
fsType = "btrfs"; fsType = "btrfs";
options = [ "subvol=@,compress=zstd" ]; options = [ "subvol=@,compress=zstd,discard" ];
}; };
"/boot" = { "/boot" = {

View file

@ -48,12 +48,12 @@
"/" = { "/" = {
device = "/dev/disk/by-uuid/b801fbea-4cb5-4255-bea9-a2ce77d1a1b7"; device = "/dev/disk/by-uuid/b801fbea-4cb5-4255-bea9-a2ce77d1a1b7";
fsType = "btrfs"; fsType = "btrfs";
options = [ "subvol=@,compress=zstd" ]; options = [ "subvol=@,compress=zstd,discard" ];
}; };
"/home" = { "/home" = {
device = "/dev/disk/by-uuid/b801fbea-4cb5-4255-bea9-a2ce77d1a1b7"; device = "/dev/disk/by-uuid/b801fbea-4cb5-4255-bea9-a2ce77d1a1b7";
fsType = "btrfs"; fsType = "btrfs";
options = [ "subvol=@home,compress=zstd" ]; options = [ "subvol=@home,compress=zstd,discard" ];
}; };
"/swap" = { "/swap" = {
device = "/dev/disk/by-uuid/b801fbea-4cb5-4255-bea9-a2ce77d1a1b7"; device = "/dev/disk/by-uuid/b801fbea-4cb5-4255-bea9-a2ce77d1a1b7";

View file

@ -9,11 +9,11 @@
enable = true; enable = true;
syntaxHighlight = true; syntaxHighlight = true;
nanorc = '' nanorc = ''
set linenumbers set linenumbers
set tabsize 4 set tabsize 4
set softwrap set softwrap
set autoindent set autoindent
set indicator set indicator
''; '';
}; };

View file

@ -38,6 +38,9 @@
# Enable fwupd (firmware updater) # Enable fwupd (firmware updater)
fwupd.enable = true; fwupd.enable = true;
# Enable trim on supported drives
fstrim.enable = true;
# Autoscrub BTRFS partitions # Autoscrub BTRFS partitions
btrfs.autoScrub = lib.mkIf (config.fileSystems."/".fsType == "btrfs") { btrfs.autoScrub = lib.mkIf (config.fileSystems."/".fsType == "btrfs") {
enable = true; enable = true;