]> Git — Sourcephile - sourcephile-nix.git/blob - servers/mermet/production/zfs.nix
nix: revamp the config paths
[sourcephile-nix.git] / servers / mermet / production / zfs.nix
1 { pkgs, lib, config, ... }:
2 {
3 imports = [
4 ../../../base/zfs.nix
5 ];
6
7 /*
8 # Enable the (OpenSolaris-compatible) ZFS auto-snapshotting service.
9 services.zfs.autoSnapshot = {
10 enable = true;
11 frequent = ;
12 hourly = ;
13 daily = ;
14 weekly = ;
15 monthly = ;
16 };
17 */
18
19 /*
20 fileSystems."/boot" =
21 { device = "bpool/boot";
22 fsType = "zfs";
23 };
24 */
25 fileSystems."/" =
26 { device = "rpool/root";
27 fsType = "zfs";
28 };
29
30 fileSystems."/home" =
31 { device = "rpool/home";
32 fsType = "zfs";
33 };
34
35 fileSystems."/nix" =
36 { device = "rpool/nix";
37 fsType = "zfs";
38 };
39
40 fileSystems."/var" =
41 { device = "rpool/var";
42 fsType = "zfs";
43 };
44
45 fileSystems."/var/cache" =
46 { device = "rpool/var/cache";
47 fsType = "zfs";
48 };
49
50 fileSystems."/var/log" =
51 { device = "rpool/var/log";
52 fsType = "zfs";
53 };
54
55 fileSystems."/var/lib/dovecot" =
56 { device = "rpool/var/mail";
57 fsType = "zfs";
58 };
59
60 fileSystems."/var/lib/redis" =
61 { device = "rpool/var/redis";
62 fsType = "zfs";
63 };
64
65 fileSystems."/var/tmp" =
66 { device = "rpool/var/tmp";
67 fsType = "zfs";
68 };
69
70 fileSystems."/var/www" =
71 { device = "rpool/var/www";
72 fsType = "zfs";
73 };
74 }