enable zramswap and btrfs compression on all machines, ty alexiaaaaaaa :3

This commit is contained in:
Tasia Iso 2025-02-10 09:51:21 +01:00
parent cf95ce130e
commit 641e7aaae8
Signed by: tasiaiso
SSH key fingerprint: SHA256:KiRjUay5C9i6objsEOIycygBHn54pDBB3Lj7fyJ0Elw
8 changed files with 10 additions and 9 deletions

View file

@ -88,4 +88,6 @@
fwupd.enable = true;
tailscale.enable = true;
};
zramSwap.enable = true;
}

View file

@ -20,7 +20,7 @@ in {
# Hardware
# ../../common/hardware/tpm2.nix
../../common/hardware/wireless.nix
../../common/hardware/ssd.nix
# ../../common/hardware/ssd.nix
../../common/hardware/btrfs.nix
../../common/components/lanzaboote.nix

View file

@ -20,7 +20,7 @@
fileSystems."/" = {
device = "/dev/disk/by-uuid/cee0ceca-3ea6-43d8-a483-00882f9ae6bb";
fsType = "btrfs";
options = ["subvol=@"];
options = ["subvol=@" "compress=zstd:5" "discard=async"];
};
boot.initrd.luks.devices."luks-ab9bf3d3-8c4f-415b-944e-a8e8d355d11c".device = "/dev/disk/by-uuid/ab9bf3d3-8c4f-415b-944e-a8e8d355d11c";
@ -28,7 +28,7 @@
fileSystems."/home" = {
device = "/dev/disk/by-uuid/cee0ceca-3ea6-43d8-a483-00882f9ae6bb";
fsType = "btrfs";
options = ["subvol=@home"];
options = ["subvol=@home" "compress=zstd:5" "discard=async"];
};
fileSystems."/boot" = {

View file

@ -20,7 +20,7 @@
fileSystems."/" = {
device = "/dev/disk/by-uuid/e867382a-7ecb-4a93-bf7c-c972be061180";
fsType = "btrfs";
options = ["subvol=@"];
options = ["subvol=@" "compress=zstd:5" "discard=async"];
};
boot.initrd.luks.devices."luks-7aa6742e-020d-49aa-a458-78ea5c3b85f8".device = "/dev/disk/by-uuid/7aa6742e-020d-49aa-a458-78ea5c3b85f8";

View file

@ -17,7 +17,7 @@
fileSystems."/" = {
device = "/dev/disk/by-uuid/469da268-3ac1-4591-9209-26c89afb2e59";
fsType = "btrfs";
options = ["subvol=@"];
options = ["subvol=@" "compress=zstd:5" "discard=async"];
};
boot.initrd.luks.devices."luks-06613ddd-abd6-409e-9a33-889cb9d15d11".device = "/dev/disk/by-uuid/06613ddd-abd6-409e-9a33-889cb9d15d11";
@ -37,7 +37,7 @@
fileSystems."/home" = {
device = "/dev/disk/by-uuid/469da268-3ac1-4591-9209-26c89afb2e59";
fsType = "btrfs";
options = ["subvol=@home"];
options = ["subvol=@home" "compress=zstd:5" "discard=async"];
};
swapDevices = [];

View file

@ -17,7 +17,7 @@
fileSystems."/" = {
device = "/dev/disk/by-uuid/699da114-1ef6-4887-9083-a03eb9e51049";
fsType = "btrfs";
options = ["subvol=@"];
options = ["subvol=@" "compress=zstd:5" "discard=async"];
};
fileSystems."/boot" = {

View file

@ -20,7 +20,7 @@
fileSystems."/" = {
device = "/dev/disk/by-uuid/223771ac-0c08-4b1e-bfbd-0e6a35868732";
fsType = "btrfs";
options = ["subvol=@"];
options = ["subvol=@" "compress=zstd:5" "discard=async"];
};
boot.initrd.luks.devices."luks-9977dbf8-b4f4-44cd-8246-5c9c4e1f9084".device = "/dev/disk/by-uuid/9977dbf8-b4f4-44cd-8246-5c9c4e1f9084";

View file

@ -84,7 +84,6 @@ in {
};
boot.tmp.cleanOnBoot = true;
zramSwap.enable = true;
networking.domain = "vulpecula.zone";
# users.users.root.openssh.authorizedKeys.keys = [''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILLyDLtqUhEQwIsPx0XgQ9OJb2+XxL+2ra4goNJEgwf0 tasia@cave'' ];
system.stateVersion = "24.05";