mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
update btrfs
This commit is contained in:
parent
1fddc7c389
commit
939abc56da
1 changed files with 40 additions and 48 deletions
|
|
@ -27,60 +27,52 @@
|
|||
extraOpenArgs = [];
|
||||
settings.allowDiscards = true;
|
||||
content = {
|
||||
type = "lvm_pv";
|
||||
vg = "pool";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
# Set swap device as resume device
|
||||
swap = {
|
||||
size = "4G";
|
||||
content = {
|
||||
type = "swap";
|
||||
discardPolicy = "both";
|
||||
resumeDevice = true;
|
||||
};
|
||||
};
|
||||
|
||||
# Use LVM to create a partition for swap
|
||||
lvm_vg = {
|
||||
pool = {
|
||||
type = "lvm_vg";
|
||||
lvs = {
|
||||
# Set swap device as resume device
|
||||
swap = {
|
||||
size = "4G";
|
||||
content = {
|
||||
type = "swap";
|
||||
discardPolicy = "both";
|
||||
resumeDevice = true;
|
||||
};
|
||||
};
|
||||
# Use btrfs over ext4 for:
|
||||
# - compression
|
||||
# nix store can be shrinked using this feature
|
||||
# - more transparent partitions (subvolumes)
|
||||
# no more "I need more space here and not there"
|
||||
btrfs = {
|
||||
size = "100%";
|
||||
content = {
|
||||
type = "btrfs";
|
||||
|
||||
# Use btrfs over ext4 for:
|
||||
# - compression
|
||||
# nix store can be shrinked using this feature
|
||||
# - more transparent partitions (subvolumes)
|
||||
# no more "I need more space here and not there"
|
||||
btrfs = {
|
||||
size = "100%";
|
||||
content = {
|
||||
type = "btrfs";
|
||||
mountpoint = "/btrfs-root";
|
||||
|
||||
mountpoint = "/btrfs-root";
|
||||
# # DANGER:
|
||||
# # Override existing partition at partition creation
|
||||
# extraArgs = ["-f"];
|
||||
|
||||
# # DANGER:
|
||||
# # Override existing partition at partition creation
|
||||
# extraArgs = ["-f"];
|
||||
subvolumes = {
|
||||
"/root" = {
|
||||
mountpoint = "/";
|
||||
};
|
||||
|
||||
subvolumes = {
|
||||
"/root" = {
|
||||
mountpoint = "/";
|
||||
};
|
||||
"/home" = {
|
||||
mountOptions = ["compress=zstd"];
|
||||
mountpoint = "/home";
|
||||
};
|
||||
|
||||
"/home" = {
|
||||
mountOptions = ["compress=zstd"];
|
||||
mountpoint = "/home";
|
||||
};
|
||||
|
||||
"/nix" = {
|
||||
mountOptions = ["compress=zstd" "noatime"];
|
||||
mountpoint = "/nix";
|
||||
"/nix" = {
|
||||
mountOptions = ["compress=zstd" "noatime"];
|
||||
mountpoint = "/nix";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue