Rearrange borg modules
This commit is contained in:
parent
a100931286
commit
b806a1865c
4 changed files with 10 additions and 8 deletions
|
|
@ -7,7 +7,7 @@
|
|||
../../../modules/wireguard.nix
|
||||
../../../modules/podman.nix
|
||||
../../../modules/traefik.nix
|
||||
../../../modules/borg-client.nix
|
||||
../../../modules/borg/client.nix
|
||||
../../../modules/login-display.nix
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
../../../modules/wireguard.nix
|
||||
../../../modules/podman.nix
|
||||
../../../modules/traefik.nix
|
||||
../../../modules/borg-client.nix
|
||||
../../../modules/borg/client.nix
|
||||
../../../modules/login-display.nix
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -3,11 +3,12 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.services.borgbackup-custom;
|
||||
cfg = config.services.borg-client-custom;
|
||||
in
|
||||
|
||||
{
|
||||
options.services.borgbackup-custom = {
|
||||
# options.services.borgbackup-custom = {
|
||||
options.services.borg-client-custom = {
|
||||
enable = mkEnableOption "Borg backup service";
|
||||
|
||||
repositoryUrl = mkOption {
|
||||
|
|
@ -3,11 +3,12 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.services.borgbackup-server;
|
||||
cfg = config.services.borg-server-custom;
|
||||
in
|
||||
|
||||
{
|
||||
options.services.borgbackup-server = {
|
||||
# options.services.borgbackup-server = {
|
||||
options.services.borg-server-custom = {
|
||||
enable = mkEnableOption "Borg backup server";
|
||||
|
||||
dataDir = mkOption {
|
||||
|
|
@ -119,7 +120,7 @@ in
|
|||
|
||||
echo "To add user '$USERNAME', add the following to your NixOS configuration:"
|
||||
echo ""
|
||||
echo "services.borgbackup-server.users.$USERNAME = {"
|
||||
echo "services.borg-server-custom.users.$USERNAME = {"
|
||||
echo " publicKeys = [ \"$SSH_KEY\" ];"
|
||||
echo "};"
|
||||
echo ""
|
||||
|
|
@ -169,4 +170,4 @@ in
|
|||
};
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue