Compare commits
4 commits
fbf1670bf9
...
71c4871af0
Author | SHA1 | Date | |
---|---|---|---|
Antoine Martin | 71c4871af0 | ||
Antoine Martin | bc74de3fc6 | ||
Antoine Martin | 8fe2ef6691 | ||
Antoine Martin | f2ec199564 |
|
@ -3,5 +3,6 @@
|
|||
home.sessionPath = [
|
||||
"${config.xdg.configHome}/emacs/bin"
|
||||
"${config.home.homeDirectory}/.cargo/bin"
|
||||
"${config.home.homeDirectory}/.local/bin"
|
||||
];
|
||||
}
|
||||
|
|
|
@ -22,6 +22,12 @@ in
|
|||
settings = i3BarTheme;
|
||||
|
||||
blocks = [
|
||||
{
|
||||
block = "pomodoro";
|
||||
length = 60;
|
||||
break_length = 10;
|
||||
use_nag = true;
|
||||
}
|
||||
{
|
||||
block = "disk_space";
|
||||
path = "/";
|
||||
|
@ -69,6 +75,12 @@ in
|
|||
# TODO: use format when i3status-rust updates to v0.20
|
||||
# format = "{percentage}";
|
||||
}
|
||||
{
|
||||
block = "music";
|
||||
player = "spotify";
|
||||
buttons = ["prev" "play" "next"];
|
||||
hide_when_empty = true;
|
||||
}
|
||||
{
|
||||
block = "sound";
|
||||
driver = "pulseaudio";
|
||||
|
|
|
@ -47,6 +47,14 @@ in
|
|||
borg-backup = {
|
||||
enable = true;
|
||||
repo = secrets.borg-backup.boreal-repo;
|
||||
# for a workstation, having backups spanning the last month should be
|
||||
# enough
|
||||
prune = {
|
||||
keep = {
|
||||
daily = 7;
|
||||
weekly = 4;
|
||||
};
|
||||
};
|
||||
paths = [
|
||||
"/home/alarsyo"
|
||||
];
|
||||
|
|
|
@ -14,6 +14,18 @@ in {
|
|||
description = "Borgbase repo info. Required.";
|
||||
};
|
||||
|
||||
prune = mkOption {
|
||||
type = types.attrs;
|
||||
default = {
|
||||
keep = {
|
||||
daily = 7;
|
||||
weekly = 4;
|
||||
monthly = 6;
|
||||
};
|
||||
};
|
||||
description = "pruning options for borg";
|
||||
};
|
||||
|
||||
paths = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [];
|
||||
|
@ -57,11 +69,7 @@ in {
|
|||
doInit = true;
|
||||
compression = "auto,zstd";
|
||||
startAt = "daily";
|
||||
prune.keep = {
|
||||
daily = 7;
|
||||
weekly = 4;
|
||||
monthly = 6;
|
||||
};
|
||||
prune = cfg.prune;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue