diff options
| author | lassulus <git@lassul.us> | 2023-07-28 23:59:58 +0200 |
|---|---|---|
| committer | lassulus <git@lassul.us> | 2023-07-28 23:59:58 +0200 |
| commit | 02e790c9fb6965e28f1573841181f610ff1599eb (patch) | |
| tree | 5462ffe78c3708806821d893baa6a2c81137812f /makefu/2configs/backup/server.nix | |
| parent | fd07efa9e97b0984856a97a44ad0b97130db92f7 (diff) | |
| parent | 3f37acf6f9ea4af21195cd7b0a37ba359105a69d (diff) | |
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/2configs/backup/server.nix')
| -rw-r--r-- | makefu/2configs/backup/server.nix | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/makefu/2configs/backup/server.nix b/makefu/2configs/backup/server.nix deleted file mode 100644 index 26e53b8c3..000000000 --- a/makefu/2configs/backup/server.nix +++ /dev/null @@ -1,19 +0,0 @@ -{lib,config, ... }: -let - hosts = lib.mapAttrsToList (f: _: lib.removeSuffix ".pub" f) (builtins.readDir ./ssh ); -in { - # TODO: for all enabled machines - options = { - makefu.backup.server.repo = lib.mkOption { - type = lib.types.str; - default = "/var/lib/borgbackup"; - }; - }; - config = { - services.borgbackup.repos = lib.genAttrs hosts (host: { - authorizedKeys = [ (builtins.readFile (./ssh + "/${host}.pub") ) ]; - path = "${config.makefu.backup.server.repo}/${host}"; - user = "borg-${host}"; - }) ; - }; -} |
