Move modules into modules/{composition,service}
This commit is contained in:
parent
3714883723
commit
359c8b601d
4 changed files with 6 additions and 6 deletions
|
@ -18,7 +18,7 @@ let
|
||||||
|
|
||||||
builtinModules = [
|
builtinModules = [
|
||||||
argsModule
|
argsModule
|
||||||
./docker-compose-module.nix
|
./modules/composition/docker-compose.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
argsModule = {
|
argsModule = {
|
||||||
|
|
|
@ -21,13 +21,13 @@ let
|
||||||
|
|
||||||
builtinModules = [
|
builtinModules = [
|
||||||
argsModule
|
argsModule
|
||||||
./service.nix
|
../service/docker-compose-service.nix
|
||||||
./service-host-store.nix
|
../service/host-store.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
argsModule = {
|
argsModule = {
|
||||||
_file = ./docker-compose-module.nix;
|
_file = ./docker-compose.nix;
|
||||||
key = ./docker-compose-module.nix;
|
key = ./docker-compose.nix;
|
||||||
config._module.args.pkgs = lib.mkForce pkgs;
|
config._module.args.pkgs = lib.mkForce pkgs;
|
||||||
config._module.args.uid = uid;
|
config._module.args.uid = uid;
|
||||||
config._module.args.customNixRootPath = customNixRootPath;
|
config._module.args.customNixRootPath = customNixRootPath;
|
|
@ -19,7 +19,7 @@ in
|
||||||
};
|
};
|
||||||
config = mkIf config.service.useHostStore {
|
config = mkIf config.service.useHostStore {
|
||||||
service.image = "arion-base";
|
service.image = "arion-base";
|
||||||
service.build.context = "${../arion-image}";
|
service.build.context = "${../../../arion-image}";
|
||||||
service.volumes = [
|
service.volumes = [
|
||||||
"${customNixRootPath}/nix/store:/nix/store"
|
"${customNixRootPath}/nix/store:/nix/store"
|
||||||
"${customNixRootPath}${pkgs.buildEnv { name = "container-system-env"; paths = [ pkgs.bashInteractive pkgs.coreutils ]; }}:/run/system"
|
"${customNixRootPath}${pkgs.buildEnv { name = "container-system-env"; paths = [ pkgs.bashInteractive pkgs.coreutils ]; }}:/run/system"
|
Loading…
Reference in a new issue