nix

configuration files that power my machines
Log | Files | Refs | README | LICENSE

disk-config.nix (1064B)


      1 _: {
      2   disko.devices = {
      3     disk = {
      4       main = {
      5         device = "/dev/sda";
      6         type = "disk";
      7         content = {
      8           type = "gpt";
      9           partitions = {
     10             boot = {
     11               name = "boot";
     12               size = "100M";
     13               type = "EF02";
     14             };
     15             root = {
     16               name = "root";
     17               size = "100%";
     18               content = {
     19                 type = "btrfs";
     20                 extraArgs = ["-f"];
     21                 subvolumes = {
     22                   "@root" = {
     23                     mountOptions = ["compress=zstd" "noatime"];
     24                     mountpoint = "/";
     25                   };
     26                   "@home" = {
     27                     mountOptions = ["compress=zstd" "noatime"];
     28                     mountpoint = "/home";
     29                   };
     30                   "@nix" = {
     31                     mountOptions = ["compress=zstd" "noatime"];
     32                     mountpoint = "/nix";
     33                   };
     34                 };
     35               };
     36             };
     37           };
     38         };
     39       };
     40     };
     41   };
     42 }