From e06273255b5ee67de2af623f8fb2f2a4da80e262 Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Wed, 17 Jan 2024 08:39:14 +0100 Subject: [PATCH] Add default value for disks argument --- hosts/nixos/lapetus/filesystems/default.nix | 4 +--- hosts/nixos/lapetus/filesystems/partitions.nix | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/hosts/nixos/lapetus/filesystems/default.nix b/hosts/nixos/lapetus/filesystems/default.nix index 32247d7..e7f434a 100644 --- a/hosts/nixos/lapetus/filesystems/default.nix +++ b/hosts/nixos/lapetus/filesystems/default.nix @@ -2,9 +2,7 @@ { imports = [ ./zfs.nix - (import ./partitions.nix { - disks = [ "/dev/sda" ]; - }) + (import ./partitions.nix { }) ]; # Mark a bunch of paths as needed for boot diff --git a/hosts/nixos/lapetus/filesystems/partitions.nix b/hosts/nixos/lapetus/filesystems/partitions.nix index bd5dff9..4950ba6 100644 --- a/hosts/nixos/lapetus/filesystems/partitions.nix +++ b/hosts/nixos/lapetus/filesystems/partitions.nix @@ -1,4 +1,4 @@ -{ disks, ... }: { +{ disks ? [ "/dev/sda" ], ... }: { disko.devices = { # {{{ Disks disk = {