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:
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user