style: reformat with nixfmt-rfc-style
This commit is contained in:
parent
5ad8bc1d56
commit
1c5d83d81e
99 changed files with 2247 additions and 1334 deletions
|
@ -1,4 +1,9 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
# using the restic cli:
|
||||
# load credentials into shell by adding B2 secrets to .env (see .env.example).
|
||||
|
@ -6,15 +11,21 @@
|
|||
|
||||
with lib;
|
||||
with builtins;
|
||||
let resticLib = import ./lib.nix { inherit config lib pkgs; };
|
||||
in {
|
||||
let
|
||||
resticLib = import ./lib.nix { inherit config lib pkgs; };
|
||||
in
|
||||
{
|
||||
imports = [ ./common.nix ];
|
||||
|
||||
environment.systemPackages = with pkgs; [ restic ];
|
||||
|
||||
services.restic.backups.full = resticLib.resticConfig {
|
||||
name = "home-server";
|
||||
paths = [ "/etc/nixos" "/var/lib" "/home" ];
|
||||
paths = [
|
||||
"/etc/nixos"
|
||||
"/var/lib"
|
||||
"/home"
|
||||
];
|
||||
ignorePatterns = [
|
||||
"/var/lib/systemd"
|
||||
"/var/lib/containers"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue