diff --git a/hosts/dragon/disko.nix b/hosts/dragon/disko.nix new file mode 100644 index 0000000..9e9fc1a --- /dev/null +++ b/hosts/dragon/disko.nix @@ -0,0 +1,39 @@ +{ + disko.devices = { + disk = { + vdb = { + device = "/dev/sda"; + type = "disk"; + content = { + type = "table"; + format = "gpt"; + partitions = [ + { + name = "ESP"; + start = "1M"; + end = "500M"; + bootable = true; + content = { + type = "filesystem"; + format = "vfat"; + mountpoint = "/boot"; + }; + } + { + name = "root"; + start = "500M"; + end = "100%"; + part-type = "primary"; + bootable = true; + content = { + type = "filesystem"; + format = "ext4"; + mountpoint = "/"; + }; + } + ]; + }; + }; + }; + }; +} diff --git a/hosts/dragon/hardware-configuration.nix b/hosts/dragon/hardware-configuration.nix index cf891cf..15395fe 100644 --- a/hosts/dragon/hardware-configuration.nix +++ b/hosts/dragon/hardware-configuration.nix @@ -11,17 +11,16 @@ boot.extraModulePackages = [ ]; fileSystems."/" = { - device = "/dev/disk/by-uuid/8f55014e-8c1b-475d-8fe6-501977358d97"; + device = "/dev/sda1"; fsType = "ext4"; }; fileSystems."/boot" = { - device = "/dev/disk/by-uuid/E6F0-40A0"; + device = "/dev/sda3"; fsType = "vfat"; }; - swapDevices = - [{ device = "/dev/disk/by-uuid/843421e5-cb74-4c43-b88d-5053e7f7dec4"; }]; + swapDevices = [ ]; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking # (the default) this is the recommended approach. When using systemd-networkd it's