]> Git — Sourcephile - sourcephile-nix.git/blob - servers/mermet/production/fileSystems.nix
sanoid: syncoid: backup my work on losurdo to mermet
[sourcephile-nix.git] / servers / mermet / production / fileSystems.nix
1 { pkgs, lib, config, ... }:
2 {
3 imports = [
4 ../../../base/zfs.nix
5 ];
6
7 # The 32-bit host id of the machine, formatted as 8 hexadecimal characters.
8 # You should try to make this id unique among your machines.
9 # Manually generated with : head -c4 /dev/urandom | od -A none -t x4 | cut -d ' ' -f 2
10 networking.hostId = "69c40b03";
11
12 /*
13 # Enable the (OpenSolaris-compatible) ZFS auto-snapshotting service.
14 services.zfs.autoSnapshot = {
15 enable = true;
16 frequent = ;
17 hourly = ;
18 daily = ;
19 weekly = ;
20 monthly = ;
21 };
22 */
23
24 /*
25 fileSystems."/boot" =
26 { device = "bpool/boot";
27 fsType = "zfs";
28 };
29 */
30 fileSystems."/" =
31 { device = "rpool/root";
32 fsType = "zfs";
33 };
34
35 fileSystems."/home" =
36 { device = "rpool/home";
37 fsType = "zfs";
38 };
39
40 fileSystems."/home/julm" =
41 { device = "rpool/home/julm";
42 fsType = "zfs";
43 };
44
45 fileSystems."/home/julm/mail" =
46 { device = "rpool/home/julm/mail";
47 fsType = "zfs";
48 };
49
50 fileSystems."/nix" =
51 { device = "rpool/nix";
52 fsType = "zfs";
53 };
54
55 fileSystems."/var" =
56 { device = "rpool/var";
57 fsType = "zfs";
58 };
59
60 fileSystems."/var/cache" =
61 { device = "rpool/var/cache";
62 fsType = "zfs";
63 };
64
65 fileSystems."/var/log" =
66 { device = "rpool/var/log";
67 fsType = "zfs";
68 };
69
70 fileSystems."/var/lib/dovecot" =
71 { device = "rpool/var/mail";
72 fsType = "zfs";
73 };
74
75 fileSystems."/var/lib/gitolite" =
76 { device = "rpool/var/git";
77 fsType = "zfs";
78 };
79
80 fileSystems."/var/lib/redis" =
81 { device = "rpool/var/redis";
82 fsType = "zfs";
83 };
84
85 fileSystems."/var/tmp" =
86 { device = "rpool/var/tmp";
87 fsType = "zfs";
88 };
89
90 fileSystems."/var/www" =
91 { device = "rpool/var/www";
92 fsType = "zfs";
93 };
94 }