forked from nyanloutre/nixos-config
setup zfs replication destination and backup
This commit is contained in:
parent
c3a629cc03
commit
dea468e9f1
@ -158,6 +158,11 @@
|
|||||||
fsType = "zfs";
|
fsType = "zfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
fileSystems."/mnt/paul-home" =
|
||||||
|
{ device = "loutrepool/zfs-replicate/paul-fixe/fastaf/home";
|
||||||
|
fsType = "zfs";
|
||||||
|
};
|
||||||
|
|
||||||
swapDevices =
|
swapDevices =
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
|
@ -14,7 +14,7 @@ let
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
login_mail_alert = pkgs.writeShellScriptBin "mail_alert.sh" ''
|
login_mail_alert = pkgs.writeShellScriptBin "mail_alert.sh" ''
|
||||||
if [ "$PAM_TYPE" != "close_session" ]; then
|
if [ "$PAM_TYPE" != "close_session" ] && [ "$PAM_USER" != "zfspaulfixe" ]; then
|
||||||
${sendMail "paul@nyanlout.re" "SSH Login: $PAM_USER from $PAM_RHOST" "`env`"}/bin/mail.sh
|
${sendMail "paul@nyanlout.re" "SSH Login: $PAM_USER from $PAM_RHOST" "`env`"}/bin/mail.sh
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
@ -228,11 +228,11 @@ in
|
|||||||
"/var/lib/postgresql/.zfs/snapshot/borgsnap"
|
"/var/lib/postgresql/.zfs/snapshot/borgsnap"
|
||||||
"/var/lib/radarr"
|
"/var/lib/radarr"
|
||||||
"/var/lib/sonarr"
|
"/var/lib/sonarr"
|
||||||
"/var/lib/syncthing"
|
|
||||||
"/var/lib/transmission"
|
"/var/lib/transmission"
|
||||||
"/mnt/medias/musique"
|
"/mnt/medias/musique"
|
||||||
"/mnt/medias/torrent/lidarr"
|
"/mnt/medias/torrent/lidarr"
|
||||||
"/mnt/medias/torrent/musique"
|
"/mnt/medias/torrent/musique"
|
||||||
|
"/mnt/paul-home/paul"
|
||||||
"/var/sieve"
|
"/var/sieve"
|
||||||
"/var/vmail"
|
"/var/vmail"
|
||||||
];
|
];
|
||||||
|
@ -29,6 +29,15 @@
|
|||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Synology Diskstation maison";
|
description = "Synology Diskstation maison";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
zfspaulfixe = {
|
||||||
|
uid = 1002;
|
||||||
|
isNormalUser = true;
|
||||||
|
openssh.authorizedKeys.keys = [
|
||||||
|
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDIQjzpEBNEwJhBTh82K5bJMyPSuHvYJyipaZYVtOZSJIDIRcec9YwMOQuMl9+O5kI36tiataEpmb/y3OWU567DXKp/BtljfVfNSQracKJPt6GJFOz4fKqCqoBh7M06ZGsBHUi/NsKIvw4asJsBuK6uACvxKFt2pSR6fp+/2y/3NH0LpDmDuuYORhciJUBC+RUTCLtVUfzkMAeR2p+M079Ia0rnkEXNFgc75FQon1bQu/0bnbHPweSwnNfRB0XPm6Qgz3sS2Cyhf1/GqgvARs80P4MWuqqZFXhsBTajOHOjCu6fiaylPNXNWfLnahkRzKIOkIy7/yEO+MmMD+V7pjbvSqB7MD1T5wfcPHvHTISM4E+7dw9aPj9+JspkgSSACtIFKsqxkWlq5creUV1syDm2Cd4rBnKrc8yWtAxBSusFWbAr6xtxP6I+ibS4trjNdHHrjMJK9jpbPxdblJJrO3qn6VYC/WzFAxzDDUi5ysGzNdpQLacacne/95gSGXCgIIc= root@paul-fixe"
|
||||||
|
];
|
||||||
|
description = "paul-fixe zfs backup user";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
users.extraGroups.medias = {
|
users.extraGroups.medias = {
|
||||||
|
@ -67,6 +67,7 @@
|
|||||||
binutils
|
binutils
|
||||||
bat
|
bat
|
||||||
molly-guard
|
molly-guard
|
||||||
|
lz4
|
||||||
|
|
||||||
# Développement
|
# Développement
|
||||||
openssl
|
openssl
|
||||||
|
Loading…
Reference in New Issue
Block a user