style: Re-apply style normalisation

Originally this was manually applied with;

```sh
nixpkgs-fmt **.nix && statix fix
```

but I overlooked the fact that `**.nix` would only expand to files in
the root (I should have used `**/*.nix`).

Previous commit adds `nix fmt` support which passes `.` to `nixpkgs-fmt`
(if no other path is explicitly specified when running `nix fmt`).

This commit includes the changes made by running `nix fmt`.
This commit is contained in:
Chris Scutcher 2023-02-07 15:56:08 +00:00
parent a393654c3b
commit ff5127ea0a
No known key found for this signature in database
GPG key ID: 19C0BED130CD39CE
12 changed files with 40 additions and 35 deletions

View file

@ -13,7 +13,7 @@
start = "0";
end = "1M";
part-type = "primary";
flags = ["bios_grub"];
flags = [ "bios_grub" ];
}
{
type = "partition";
@ -53,7 +53,7 @@
start = "0";
end = "1M";
part-type = "primary";
flags = ["bios_grub"];
flags = [ "bios_grub" ];
}
{
type = "partition";

View file

@ -35,12 +35,12 @@
};
# Mountpoints inferred from subvolume name
"/home" = {
mountOptions = ["compress=zstd"];
mountOptions = [ "compress=zstd" ];
};
"/nix" = {
mountOptions = ["compress=zstd" "noatime"];
mountOptions = [ "compress=zstd" "noatime" ];
};
"/test" = {};
"/test" = { };
};
};
}

View file

@ -51,7 +51,7 @@
part-type = "primary";
start = "1024MiB";
end = "100%";
flags = ["bios_grub"];
flags = [ "bios_grub" ];
content = {
type = "luks";
name = "crypted";

View file

@ -14,7 +14,7 @@
start = "0";
end = "1M";
part-type = "primary";
flags = ["bios_grub"];
flags = [ "bios_grub" ];
}
{
name = "root";

View file

@ -13,7 +13,7 @@
type = "partition";
start = "0";
end = "1M";
flags = ["bios_grub"];
flags = [ "bios_grub" ];
}
{
type = "partition";

View file

@ -13,7 +13,7 @@
start = "0";
end = "1M";
part-type = "primary";
flags = ["bios_grub"];
flags = [ "bios_grub" ];
}
{
type = "partition";
@ -41,7 +41,7 @@
start = "0";
end = "1M";
part-type = "primary";
flags = ["bios_grub"];
flags = [ "bios_grub" ];
}
{
type = "partition";

View file

@ -1,8 +1,8 @@
{
pkgs,
lib,
...
}: let
{ pkgs
, lib
, ...
}:
let
# We just import from the repository for testing here:
disko = import ../../. {
inherit lib;
@ -41,7 +41,8 @@
};
};
};
in {
in
{
imports = [
(disko.config cfg)
];

View file

@ -13,7 +13,7 @@
start = "0";
end = "1M";
part-type = "primary";
flags = ["bios_grub"];
flags = [ "bios_grub" ];
}
{
name = "root";