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 { flake.nixosConfigurations."homebox" = inputs.nixpkgs.lib.nixosSystem {
modules = [ modules = [
self.nixosModules.homebox
self.nixosModules.default 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 = { config = {
services = { services = {

View File

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