Compare commits

..

8 Commits

Author SHA1 Message Date
Renovate Bot
5c3aeebc8d chore(deps): lock file maintenance 2024-08-10 09:54:49 +00:00
a838308a93
Disable aerc 2024-08-04 15:59:04 +02:00
5a45d11188
Snapshot and backup for /home 2024-08-04 15:55:28 +02:00
0233acfbf3
Disable simple configuration 2024-08-04 15:54:42 +02:00
3df7c287d3
flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/12bf09802d77264e441f48e25459c10c93eada2e' (2024-07-29)
  → 'github:nixos/nixpkgs/a633d89c6dc9a2a8aae11813a62d7c58b2c0cc51' (2024-08-03)
• Updated input 'nixpkgs-unstable':
    'github:nixos/nixpkgs/52ec9ac3b12395ad677e8b62106f0b98c1f8569d' (2024-07-28)
  → 'github:nixos/nixpkgs/d04953086551086b44b6f3c6b7eeb26294f207da' (2024-08-02)
2024-08-04 15:34:26 +02:00
dba8f4374f
flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/575f3027caa1e291d24f1e9fb0e3a19c2f26d96b' (2024-07-22)
  → 'github:nixos/nixpkgs/12bf09802d77264e441f48e25459c10c93eada2e' (2024-07-29)
• Updated input 'nixpkgs-unstable':
    'github:nixos/nixpkgs/68c9ed8bbed9dfce253cc91560bf9043297ef2fe' (2024-07-21)
  → 'github:nixos/nixpkgs/52ec9ac3b12395ad677e8b62106f0b98c1f8569d' (2024-07-28)
2024-08-01 16:27:42 +02:00
a0c00480f3
Simple btrbk config 2024-08-01 16:24:21 +02:00
2bd2b5f57f
flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/53e81e790209e41f0c1efa9ff26ff2fd7ab35e27' (2024-07-14)
  → 'github:nixos/nixpkgs/575f3027caa1e291d24f1e9fb0e3a19c2f26d96b' (2024-07-22)
• Updated input 'nixpkgs-unstable':
    'github:nixos/nixpkgs/693bc46d169f5af9c992095736e82c3488bf7dbb' (2024-07-14)
  → 'github:nixos/nixpkgs/68c9ed8bbed9dfce253cc91560bf9043297ef2fe' (2024-07-21)
2024-07-25 09:15:52 +02:00
4 changed files with 78 additions and 8 deletions

12
flake.lock generated
View File

@ -41,11 +41,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1722087241,
"narHash": "sha256-2ShmEaFi0kJVOEEu5gmlykN5dwjWYWYUJmlRTvZQRpU=",
"lastModified": 1722987190,
"narHash": "sha256-68hmex5efCiM2aZlAAEcQgmFI4ZwWt8a80vOeB/5w3A=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "8c50662509100d53229d4be607f1a3a31157fa12",
"rev": "21cc704b5e918c5fbf4f9fff22b4ac2681706d90",
"type": "github"
},
"original": {
@ -57,11 +57,11 @@
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1722062969,
"narHash": "sha256-QOS0ykELUmPbrrUGmegAUlpmUFznDQeR4q7rFhl8eQg=",
"lastModified": 1723175592,
"narHash": "sha256-M0xJ3FbDUc4fRZ84dPGx5VvgFsOzds77KiBMW/mMTnI=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "b73c2221a46c13557b1b3be9c2070cc42cf01eb3",
"rev": "5e0ca22929f3342b19569b21b2f3462f053e497b",
"type": "github"
},
"original": {

View File

@ -28,7 +28,7 @@ let
showSignature = "append";
};
aerc = {
enable = true;
enable = false;
extraAccounts = {
pgp-opportunistic-encrypt = true;
pgp-autosign = true;
@ -84,7 +84,7 @@ in {
programs.password-store.enable = true;
programs.aerc = {
enable = true;
enable = false;
extraConfig = builtins.readFile ./aerc/aerc.conf;
/* { */
/* general = { */

View File

@ -15,6 +15,7 @@ inputs.nixpkgs.lib.nixosSystem {
nixpkgs.overlays = [ overlay-unstable ];
})
(import ./common.nix inputs)
(import ./morpheus/btrbk.nix inputs)
(import ./dev.nix inputs)
(import ./entertainment.nix inputs)
(import ./office.nix inputs)

View File

@ -0,0 +1,69 @@
{ ... }: {
services.btrbk = {
instances = {
/*
home = {
settings = {
snapshot_preserve = "24h 14d 4w 12m";
snapshot_preserve_min = "latest";
# don't auto cleanup target
target_preserve_min = "all";
volume."/" = {
snapshot_dir = ".btrbk";
subvolume = {
home = {
snapshot_create = "always";
};
};
target = "/run/media/me/backup/morpheus";
};
};
};
*/
# local snapshots:
# - create hourly
# - keep hourly for 4 days and daily forever
home_local = {
onCalendar = "hourly";
settings = {
snapshot_preserve = "96h *d";
snapshot_preserve_min = "latest";
volume."/" = {
snapshot_dir = "/home/.btrbk";
subvolume.home = {
snapshot_create = "always";
};
};
};
};
# backup snapshots to backup drive
# - keep all hourly and the last 14 days of daily snapshots on the local disk
# - keep 14 daily, 8 weekly and all monthly snapshots on the backup drive
# - don't create new snapshots
# - TODO: trigger on mount
home_external = {
# disable systemd timer
onCalendar = null;
settings = {
snapshot_preserve = "*h 14d";
snapshot_preserve_min = "latest";
target_preserve = "14d 8w *m";
#target_preserve_min = "all";
volume."/" = {
snapshot_dir = "/home/.btrbk";
subvolume.home = {
snapshot_create = "no";
};
target = "/run/media/me/backup/morpheus";
};
};
};
};
};
}