From adbbb9c773916afac4c02d17ff00c5b768d9fee1 Mon Sep 17 00:00:00 2001 From: William Date: Sun, 8 Jun 2025 12:21:18 -0300 Subject: [PATCH] disko config now part of hardware-configuration for trantor --- hosts/modules/trantor/disko.nix | 32 ------------------- .../trantor/hardware-configuration.nix | 31 ++++++++++++++++++ 2 files changed, 31 insertions(+), 32 deletions(-) delete mode 100644 hosts/modules/trantor/disko.nix diff --git a/hosts/modules/trantor/disko.nix b/hosts/modules/trantor/disko.nix deleted file mode 100644 index 39599f4..0000000 --- a/hosts/modules/trantor/disko.nix +++ /dev/null @@ -1,32 +0,0 @@ -{ - disko.devices = { - disk = { - main = { - type = "disk"; - device = "/dev/sda"; - content = { - type = "gpt"; - partitions = { - boot = { - size = "512M"; - type = "EF00"; - content = { - type = "filesystem"; - format = "vfat"; - mountpoint = "/boot"; - }; - }; - root = { - size = "100%"; - content = { - type = "filesystem"; - format = "ext4"; - mountpoint = "/"; - }; - }; - }; - }; - }; - }; - }; -} diff --git a/hosts/modules/trantor/hardware-configuration.nix b/hosts/modules/trantor/hardware-configuration.nix index d5cc31f..6f36ffa 100644 --- a/hosts/modules/trantor/hardware-configuration.nix +++ b/hosts/modules/trantor/hardware-configuration.nix @@ -24,4 +24,35 @@ networking.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux"; + + disko.devices = { + disk = { + main = { + type = "disk"; + device = "/dev/sda"; + content = { + type = "gpt"; + partitions = { + boot = { + size = "512M"; + type = "EF00"; + content = { + type = "filesystem"; + format = "vfat"; + mountpoint = "/boot"; + }; + }; + root = { + size = "100%"; + content = { + type = "filesystem"; + format = "ext4"; + mountpoint = "/"; + }; + }; + }; + }; + }; + }; + }; }