Personal Nix flake
nixos home-manager nix
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(nixos): Add storage module

Initial mergerfs, zfs support

+45
+1
nix/nixos/modules/default.nix
··· 40 40 ./security 41 41 ./services 42 42 ./ssh 43 + ./storage 43 44 ./syncthing 44 45 ./tailscale 45 46 ./theming
+6
nix/nixos/modules/storage/default.nix
··· 1 + { 2 + imports = [ 3 + ./mergerfs.nix 4 + ./zfs.nix 5 + ]; 6 + }
+17
nix/nixos/modules/storage/mergerfs.nix
··· 1 + { 2 + config, 3 + lib, 4 + pkgs, 5 + ... 6 + }: let 7 + cfg = config.my.storage.mergerfs; 8 + in { 9 + options.my.storage.mergerfs.enable = lib.mkEnableOption "mergerfs"; 10 + 11 + config = lib.mkIf (cfg.enable) { 12 + environment.systemPackages = with pkgs; [ 13 + mergerfs 14 + mergerfs-tools 15 + ]; 16 + }; 17 + }
+21
nix/nixos/modules/storage/zfs.nix
··· 1 + { 2 + config, 3 + lib, 4 + pkgs, 5 + ... 6 + }: let 7 + cfg = config.my.storage.zfs; 8 + in { 9 + options.my.storage.zfs.enable = lib.mkEnableOption "ZFS"; 10 + 11 + config = lib.mkIf (cfg.enable) { 12 + boot = { 13 + supportedFilesystems = ["zfs"]; 14 + zfs.forceImportRoot = false; 15 + }; 16 + 17 + environment.systemPackages = with pkgs; [ 18 + zfs 19 + ]; 20 + }; 21 + }