forked from Fediversity/Fediversity
resolve rebase
This commit is contained in:
parent
856a5cf078
commit
a7ca58c2d3
3 changed files with 11 additions and 31 deletions
|
@ -9,10 +9,9 @@ let
|
|||
git-hooks
|
||||
gitignore
|
||||
;
|
||||
inherit (import sources.flake-inputs) import-flake;
|
||||
inputs = (import-flake { src = ./.; }).inputs;
|
||||
inherit (pkgs) lib;
|
||||
inherit (import sources.flake-inputs) import-flake;
|
||||
inputs = (import-flake { src = ./.; }).inputs;
|
||||
inherit ((import-flake { src = ./.; }).inputs) nixops4;
|
||||
panel = import ./panel { inherit sources system; };
|
||||
pre-commit-check =
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
let
|
||||
inherit (import ../default.nix { }) pkgs inputs;
|
||||
inherit (pkgs) lib;
|
||||
inherit (lib) mkOption;
|
||||
inherit (lib) mkOption types;
|
||||
eval =
|
||||
module:
|
||||
(lib.evalModules {
|
||||
|
@ -166,14 +166,14 @@ in
|
|||
applications.hello.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
environments.single-nixos-vm = {
|
||||
|
||||
};
|
||||
configurations.example = {
|
||||
enable = true;
|
||||
applications.hello.enable = true;
|
||||
# default = config.environments.single-nixos-vm.deployment config.example-configuration;
|
||||
example-deployment = mkOption {
|
||||
type = types.submoduleWith {
|
||||
class = "nixops4Deployment";
|
||||
modules = [ nixops4Deployment ];
|
||||
};
|
||||
readOnly = true;
|
||||
default = config.environments.single-nixos-vm.deployment config.example-configuration;
|
||||
};
|
||||
};
|
||||
}
|
||||
);
|
||||
|
|
|
@ -25,6 +25,7 @@ let
|
|||
);
|
||||
};
|
||||
};
|
||||
nixops4Deployment = inputs.nixops4.modules.nixops4Deployment.default;
|
||||
in
|
||||
{
|
||||
_class = "fediversity-settings";
|
||||
|
@ -107,26 +108,6 @@ in
|
|||
];
|
||||
});
|
||||
};
|
||||
configuration = mkOption {
|
||||
description = "Configuration type declaring options to be set by operators";
|
||||
type = optionType;
|
||||
readOnly = true;
|
||||
default = submodule {
|
||||
options = {
|
||||
enable = lib.mkEnableOption {
|
||||
description = "your Fediversity configuration";
|
||||
};
|
||||
applications = lib.mapAttrs (
|
||||
_name: application:
|
||||
mkOption {
|
||||
description = application.description;
|
||||
type = submodule application.module;
|
||||
default = { };
|
||||
}
|
||||
) config.applications;
|
||||
};
|
||||
};
|
||||
};
|
||||
environments = mkOption {
|
||||
description = "Run-time environments for Fediversity applications to be deployed to";
|
||||
type = attrsOf (submoduleWith {
|
||||
|
|
Loading…
Add table
Reference in a new issue