nixos-dots

nixos dots
git clone git://popovic.xyz/nixos-dots.git
Log | Files | Refs

disk-vm.nix (913B)


      1 {
      2   disko.devices = {
      3     disk = {
      4       my-disk = {
      5         device = "/dev/vda";
      6         type = "disk";
      7         content = {
      8           type = "gpt";
      9           partitions = {
     10             ESP = {
     11               type = "EF00";
     12               size = "512M";
     13               content = {
     14                 mountpoint = "/boot";
     15                 type = "filesystem";
     16                 format = "vfat";
     17                 mountOptions = [ "umask=0077" ];
     18               };
     19             };
     20             swap = {
     21                 size = "8G";
     22                 content = {
     23                     type ="swap";
     24                     resumeDevice = true;
     25                 };
     26             };
     27             root = {
     28               size = "100%";
     29               content = {
     30                 mountpoint = "/";
     31                 type = "filesystem";
     32                 format = "ext4";
     33               };
     34             };
     35           };
     36         };
     37       };
     38     };
     39   };
     40 }