fix: Flake | use nixfmt=classic to format nix files

This commit is contained in:
2025-02-17 19:24:25 +05:00
parent 234e52f051
commit 7eab398f6d
41 changed files with 189 additions and 370 deletions

View File

@@ -1,12 +1,4 @@
{
lib,
config,
device,
withSwap,
swapSize,
label,
...
}:
{ lib, config, device, withSwap, swapSize, label, ... }:
{
disko = {
@@ -42,10 +34,8 @@
passwordFile = "/tmp/secret.key";
settings = {
allowDiscards = true;
crypttabExtraOpts = [
"fido2-device=auto"
"token-timeout=10"
];
crypttabExtraOpts =
[ "fido2-device=auto" "token-timeout=10" ];
};
content = {
type = "lvm_pv";
@@ -72,35 +62,20 @@
size = "100%";
content = {
type = "btrfs";
extraArgs = [
"-L"
label
"-f"
];
extraArgs = [ "-L" label "-f" ];
subvolumes = {
"@root" = {
mountpoint = "/";
mountOptions = [
"subvol=root"
"compress=zstd"
"noatime"
];
mountOptions = [ "subvol=root" "compress=zstd" "noatime" ];
};
"@persist" = {
mountpoint = config.hostSpec.persist;
mountOptions = [
"subvol=persist"
"compress=zstd"
"noatime"
];
mountOptions =
[ "subvol=persist" "compress=zstd" "noatime" ];
};
"@nix" = {
mountpoint = "/nix";
mountOptions = [
"subvol=nix"
"compress=zstd"
"noatime"
];
mountOptions = [ "subvol=nix" "compress=zstd" "noatime" ];
};
};
};