Move radicale data to zpool and use robust auth
This commit is contained in:
parent
e8953bd3e7
commit
33523cc4c6
|
@ -76,15 +76,15 @@
|
||||||
config = ''
|
config = ''
|
||||||
[server]
|
[server]
|
||||||
hosts = 127.0.0.1:5232
|
hosts = 127.0.0.1:5232
|
||||||
max_connections = 20
|
|
||||||
max_content_length = 100000000
|
|
||||||
timeout = 30
|
|
||||||
|
|
||||||
[auth]
|
[auth]
|
||||||
type = htpasswd
|
type = htpasswd
|
||||||
htpasswd_filename = /var/lib/radicale/users
|
htpasswd_filename = /vault/radicale/users
|
||||||
htpasswd_encryption = plain
|
htpasswd_encryption = md5
|
||||||
delay = 1
|
delay = 1
|
||||||
|
|
||||||
|
[storage]
|
||||||
|
filesystem_folder = /vault/radicale/collections
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -4,57 +4,60 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports = [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> ];
|
||||||
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
|
|
||||||
];
|
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "usb_storage" ];
|
boot.initrd.availableKernelModules = [ "usb_storage" ];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = [ ];
|
boot.kernelModules = [ ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" = {
|
||||||
{ device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888";
|
device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/vault" =
|
fileSystems."/vault" = {
|
||||||
{ device = "vault";
|
device = "vault";
|
||||||
fsType = "zfs";
|
fsType = "zfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/vault/backups" =
|
fileSystems."/vault/backups" = {
|
||||||
{ device = "vault/backups";
|
device = "vault/backups";
|
||||||
fsType = "zfs";
|
fsType = "zfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/vault/git" =
|
fileSystems."/vault/git" = {
|
||||||
{ device = "vault/git";
|
device = "vault/git";
|
||||||
fsType = "zfs";
|
fsType = "zfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/vault/syncthing" =
|
fileSystems."/vault/syncthing" = {
|
||||||
{ device = "vault/syncthing";
|
device = "vault/syncthing";
|
||||||
fsType = "zfs";
|
fsType = "zfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/vault/nextcloud" =
|
fileSystems."/vault/nextcloud" = {
|
||||||
{ device = "vault/nextcloud";
|
device = "vault/nextcloud";
|
||||||
fsType = "zfs";
|
fsType = "zfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/vault/backups/zion" =
|
fileSystems."/vault/backups/zion" = {
|
||||||
{ device = "vault/backups/zion";
|
device = "vault/backups/zion";
|
||||||
fsType = "zfs";
|
fsType = "zfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/vault/backups/monolith" =
|
fileSystems."/vault/backups/monolith" = {
|
||||||
{ device = "vault/backups/monolith";
|
device = "vault/backups/monolith";
|
||||||
fsType = "zfs";
|
fsType = "zfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/vault/backups/zion/databases" =
|
fileSystems."/vault/backups/zion/databases" = {
|
||||||
{ device = "vault/backups/zion/databases";
|
device = "vault/backups/zion/databases";
|
||||||
|
fsType = "zfs";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/vault/radicale" = {
|
||||||
|
device = "vault/radicale";
|
||||||
fsType = "zfs";
|
fsType = "zfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue