hosts/dunamis/disko/disk-main.nix: refactor

hosts/sarien/disko/default.nix: source dunamis/disko/disk-main.nix

Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
2025-06-04 12:57:36 +03:00
parent f5a5f4b87c
commit 672f28c75c
2 changed files with 9 additions and 23 deletions

View File

@ -28,42 +28,27 @@
name = "luks-main";
initrdUnlock = true;
settings.allowDiscards = true;
content = {
content = let
mountOptions = ["autodefrag" "compress-force=zstd" "noatime"];
in {
type = "btrfs";
extraArgs = ["-f"];
subvolumes = {
"@nixos-root" = {
mountpoint = "/";
mountOptions = [
"autodefrag"
"compress=zstd"
"noatime"
"noexec"
];
mountOptions = mountOptions ++ ["noexec"];
};
"@home" = {
mountpoint = "/home";
mountOptions = [
"autodefrag"
"compress=zstd"
"noatime"
];
inherit mountOptions;
};
"@storage" = {
mountpoint = "/storage";
mountOptions = [
"autodefrag"
"compress=zstd"
"noatime"
];
inherit mountOptions;
};
"@nix" = {
mountpoint = "/nix";
mountOptions = [
"autodefrag"
"compress-force=zstd"
"noatime"
];
inherit mountOptions;
};
};
};