]> Git — Sourcephile - sourcephile-nix.git/blob - servers/losurdo/fileSystems.nix
nix: deploy security.pass to mermet too
[sourcephile-nix.git] / servers / losurdo / fileSystems.nix
1 { pkgs, lib, config, ... }:
2 {
3 imports = [
4 ../../nixos/profiles/systems/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 fileSystems."/" =
20 { device = "losurdo_nvme/root";
21 fsType = "zfs";
22 };
23
24 fileSystems."/home" =
25 { device = "losurdo_nvme/home";
26 fsType = "zfs";
27 };
28
29 fileSystems."/home/julm" =
30 { device = "losurdo_nvme/home/julm";
31 fsType = "zfs";
32 };
33
34 fileSystems."/home/julm/work" =
35 { device = "losurdo_nvme/home/julm/work";
36 fsType = "zfs";
37 };
38
39 fileSystems."/nix" =
40 { device = "losurdo_nvme/nix";
41 fsType = "zfs";
42 };
43
44 fileSystems."/var" =
45 { device = "losurdo_nvme/var";
46 fsType = "zfs";
47 };
48
49 fileSystems."/var/cache" =
50 { device = "losurdo_nvme/var/cache";
51 fsType = "zfs";
52 };
53
54 fileSystems."/var/log" =
55 { device = "losurdo_nvme/var/log";
56 fsType = "zfs";
57 };
58
59 fileSystems."/var/lib/postgresql" =
60 { device = "losurdo_nvme/var/postgresql";
61 fsType = "zfs"; # with sync=always,
62 # though loading OpenConcerto's initial SQL
63 # takes 1m40s instead of 40s :\
64 };
65
66 fileSystems."/var/tmp" =
67 { device = "losurdo_nvme/var/tmp";
68 fsType = "zfs";
69 };
70
71 fileSystems."/var/torrents" =
72 { device = "losurdo_nvme/var/torrents";
73 fsType = "zfs";
74 };
75 }