Parameterize
This commit is contained in:
parent
78c2222162
commit
e21b0f019e
1 changed files with 18 additions and 17 deletions
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
standardWithHibernateSwap = {
|
||||
disks ? ["/dev/sda"],
|
||||
extraSubvolumes ? {},
|
||||
swapSize,
|
||||
...
|
||||
}: {
|
||||
|
@ -9,8 +10,6 @@
|
|||
# it includes an LUKS-encrypted btrfs volume
|
||||
# a swap partition big enough to dump all the machine's RAM into
|
||||
|
||||
# this is my standard partitioning scheme for my machines: an LUKS-encrypted
|
||||
# btrfs volume
|
||||
disko.devices = {
|
||||
disk = {
|
||||
primary = {
|
||||
|
@ -22,7 +21,7 @@
|
|||
ESP = {
|
||||
label = "EFI";
|
||||
name = "ESP";
|
||||
size = "1G";
|
||||
size = "4G";
|
||||
type = "EF00";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
|
@ -55,8 +54,9 @@
|
|||
content = {
|
||||
type = "btrfs";
|
||||
extraArgs = ["-f"];
|
||||
subvolumes = {
|
||||
"/root" = {
|
||||
subvolumes =
|
||||
{
|
||||
"/nixos" = {
|
||||
mountpoint = "/";
|
||||
mountOptions = ["compress=zstd" "noatime"];
|
||||
};
|
||||
|
@ -68,7 +68,8 @@
|
|||
mountpoint = "/nix";
|
||||
mountOptions = ["compress=zstd" "noatime"];
|
||||
};
|
||||
};
|
||||
}
|
||||
// extraSubvolumes;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue