dotfiles/home-manager/diana.nix

55 lines
1.1 KiB
Nix
Raw Normal View History

2024-04-04 19:17:34 +00:00
{ config, lib, pkgs, ... }:
{
imports = [ ./common.nix ];
home.username = "digyx";
home.homeDirectory = "/var/home/digyx";
2024-04-14 02:25:39 +00:00
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 ];
2024-04-04 19:17:34 +00:00
# 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";
};
};
};
};
}