dotfiles/home-manager/diana.nix
2024-04-13 22:25:39 -04:00

54 lines
1.1 KiB
Nix

{ config, lib, pkgs, ... }:
{
imports = [ ./common.nix ];
home.username = "digyx";
home.homeDirectory = "/var/home/digyx";
home.file = {
".config/i3status-rust".source = ../i3status-rust;
".config/rofi".source = ../rofi;
".config/sway".source = ../sway;
".config/swaylock/config".text = ''
image=/var/home/digyx/Pictures/ina_bday_2021_4k.png
scaling=fill
'';
};
home.packages = with pkgs; [ i3status-rust ];
# Services
services.syncthing.enable = true;
# Borgmatic
services.borgmatic = {
enable = true;
frequency = "*-*-* 08:00:00";
};
programs.borgmatic = {
enable = true;
backups = {
diana = {
location = {
sourceDirectories = [ "/var/home/digyx" ];
repositories = [ "ssh://tztl5fp2@tztl5fp2.repo.borgbase.com/./repo" ];
};
retention = {
keepDaily = 7;
keepWeekly = 4;
keepMonthly = 12;
};
storage = {
encryptionPasscommand = "${pkgs.pass}/bin/pass borg-key";
extraConfig.ssh_command = "/usr/bin/ssh";
};
};
};
};
}