Add borg backup

This commit is contained in:
Fabian Hauser 2020-02-27 21:02:28 +00:00
parent 89121d488a
commit 26220b54ec

View file

@ -17,11 +17,13 @@
boot.initrd.luks.devices = {
"root".device = "/dev/disk/by-uuid/3a0a5071-67ab-4e13-a0b7-d31b86f5e8b1";
"swap".device = "/dev/disk/by-uuid/6dee6e3c-e2f3-46c5-8751-5fce8c80ed49";
"backup".device = "/dev/disk/by-uuid/a965933d-516c-46cf-8384-006b1770e46b";
};
fileSystems = {
"/" = { device = "/dev/mapper/root"; fsType = "btrfs"; };
"/boot" = { device = "/dev/disk/by-uuid/0065-E4EA"; fsType = "vfat"; };
"/var/backup" = { device = "/dev/mapper/backup"; fsType = "ext4"; };
"/boot" = { device = "/dev/disk/by-uuid/0065-E4EA"; fsType = "vfat"; options = [ "defaults" "noatime" ]; };
};
swapDevices = [{ device = "/dev/mapper/swap"; }];
@ -30,6 +32,11 @@
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
environment.systemPackages = [ pkgs.borgbackup ];
networking.hostName = "montalin"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.