remove clanDir default
The default value for clanDir did not make sense, as it pointed to the directory of the module definition Also, we should not have a default at this level as all.
This commit is contained in:
@@ -133,6 +133,7 @@
|
||||
self.nixosModules.test-backup
|
||||
];
|
||||
virtualisation.emptyDiskImages = [ 256 ];
|
||||
clan.core.clanDir = ./.;
|
||||
};
|
||||
|
||||
testScript = ''
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
clan.postgresql.databases.test.create.options.OWNER = "test";
|
||||
clan.postgresql.databases.test.restore.stopOnRestore = [ "sample-service" ];
|
||||
clan.localbackup.targets.hdd.directory = "/mnt/external-disk";
|
||||
clan.core.clanDir = ./.;
|
||||
|
||||
systemd.services.sample-service = {
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
|
||||
@@ -3,7 +3,9 @@ let
|
||||
clanDir = config.clan.core.clanDir;
|
||||
machineDir = clanDir + "/machines/";
|
||||
in
|
||||
lib.warn "This module is deprecated use the service via the inventory interface instead." {
|
||||
lib.warn
|
||||
"The borgbackup-static module is deprecated use the service via the inventory interface instead."
|
||||
{
|
||||
imports = [ ../borgbackup ];
|
||||
|
||||
options.clan.borgbackup-static = {
|
||||
@@ -98,4 +100,4 @@ lib.warn "This module is deprecated use the service via the inventory interface
|
||||
'';
|
||||
}
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,7 +45,6 @@
|
||||
};
|
||||
clanDir = lib.mkOption {
|
||||
type = lib.types.path;
|
||||
default = ./.;
|
||||
description = ''
|
||||
the location of the flake repo, used to calculate the location of facts and secrets
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user