fix disko
This commit is contained in:
@@ -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 = {
|
||||||
|
|||||||
@@ -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";
|
||||||
|
|||||||
Reference in New Issue
Block a user