add initial user pw and work on other stuff

This commit is contained in:
Kopatz
2024-05-09 19:49:41 +02:00
parent 030162ac44
commit 8aabc73f3e
3 changed files with 30 additions and 20 deletions

View File

@@ -1,5 +1,14 @@
{ config, pkgs, lib, inputs, ... }:
let
with lib;
let
cfg = config.custom.misc.backup;
in
{
options.custom.backup = {
enable = mkEnableOption "Enables backup";
};
config = let
kavita = "/mnt/1tbssd/kavita";
gitolite = "/var/lib/gitolite";
syncthing = [ "/synced/default/" "/synced/work_drive/" ];
@@ -27,8 +36,7 @@ let
du -sch ${builtins.concatStringsSep " " (map (x: "--exclude=" + x) excludePathsRemote)} ${builtins.concatStringsSep " " backupPathsFull}
'';
};
in
{
in mkIf cfg.enable {
environment.systemPackages = with pkgs; [ checkStorageSpace ];
age.secrets.restic-pw = {
file = ../secrets/restic-pw.age;
@@ -98,3 +106,4 @@ in
};
};
}
}