fix disko

This commit is contained in:
2026-04-19 07:55:25 -05:00
parent 300b407208
commit 3b386828af
2 changed files with 5 additions and 14 deletions

View File

@@ -3,8 +3,9 @@
flake.nixosConfigurations."homebox" = inputs.nixpkgs.lib.nixosSystem {
modules = [
self.nixosModules.homebox
self.nixosModules.default
self.nixosModules.homebox
self.diskoConfigurations.homebox
];
};
@@ -12,11 +13,6 @@
{
imports = [ # Include the results of the hardware scan.
(import ./disko.nix { device1 = "/dev/nvme0n1"; device2 = "/dev/nvme1n1"; device3 = "/dev/sda"; })
];
config = {
services = {

View File

@@ -1,15 +1,10 @@
{ ... }: {
flake.diskoConfigurations.homebox = {
device1 ? throw "Set this to your disk device, e.g. /dev/sda",
device2,
device3,
...
}: {
disko.devices = {
disk = {
main = {
device = device1;
device = "/dev/nvme0n1";
type = "disk";
content = {
type = "gpt";
@@ -48,7 +43,7 @@
};
};
ssd1 = {
device = device2;
device = "/dev/nvme1n1";
type = "disk";
content = {
type = "gpt";
@@ -65,7 +60,7 @@
};
};
hdd1 = {
device = device3;
device = "/dev/sda";
type = "disk";
content = {
type = "gpt";