This repository has no description
1.5 kB
56 lines
1{ self, ... }:
2{
3 imports = [
4 self.inputs.disko.nixosModules.disko
5 ];
6 disko.devices.disk = {
7 main = {
8 type = "disk";
9 device = "/dev/disk/by-id/ata-Samsung_SSD_850_EVO_500GB_S2RBNX0H662201F";
10 content = {
11 type = "gpt";
12 partitions = {
13 grub = {
14 size = "1M";
15 type = "EF02";
16 };
17 ESP = {
18 size = "1G";
19 type = "EF00";
20 content = {
21 type = "filesystem";
22 format = "vfat";
23 mountpoint = "/boot";
24 };
25 };
26 root = {
27 size = "100%";
28 content = {
29 type = "luks";
30 name = "shodan";
31 content = {
32 type = "btrfs";
33 extraArgs = [ "-f" ]; # Override existing partition
34 subvolumes = {
35 # Subvolume name is different from mountpoint
36 "/rootfs" = {
37 mountpoint = "/";
38 };
39 # Mountpoints inferred from subvolume name
40 "/home" = {
41 mountOptions = [ ];
42 mountpoint = "/home";
43 };
44 "/nix" = {
45 mountOptions = [ ];
46 mountpoint = "/nix";
47 };
48 };
49 };
50 };
51 };
52 };
53 };
54 };
55 };
56}