-
Notifications
You must be signed in to change notification settings - Fork 1
/
configuration.nix##h.nixos-01
57 lines (52 loc) · 1.04 KB
/
configuration.nix##h.nixos-01
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{ config, ... }:
{
imports = [
./hardware-configuration.nix
/home/mario/common-config.nix
];
networking = {
hostName = "nixos-01";
};
systemd = {
mounts = [
{
description = "Restic backup";
enable = true;
what = "/dev/disk/by-label/ssd";
where = "/run/mount/backup";
type = "ext4";
wantedBy = [
"multi-user.target"
];
requiredBy = [
"restic-backups-local.timer"
];
after = [
"network.target"
];
}
];
};
services = {
restic = {
backups = {
local = {
initialize = true;
user = "root";
passwordFile = "/home/mario/.restic-key";
paths = [
"/home/mario"
];
repository = "/run/mount/backup/01";
timerConfig = {
OnCalendar = "03:00";
};
extraBackupArgs = [
"--tag automatic"
];
};
};
};
};
system.stateVersion = "20.03";
}