forked from Fediversity/Fediversity
set default value for nixops4Package (#412)
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io> Reviewed-on: Fediversity/Fediversity#412 Reviewed-by: Valentin Gagarin <valentin.gagarin@tweag.io> Co-authored-by: Kiara Grouwstra <kiara@procolix.eu> Co-committed-by: Kiara Grouwstra <kiara@procolix.eu>
This commit is contained in:
parent
d7dbdd923c
commit
737aecaba6
6 changed files with 17 additions and 6 deletions
|
@ -155,7 +155,6 @@ in
|
||||||
SECRET_KEY = dummyFile;
|
SECRET_KEY = dummyFile;
|
||||||
};
|
};
|
||||||
port = panelPort;
|
port = panelPort;
|
||||||
nixops4Package = inputs.nixops4.packages.${pkgs.system}.default;
|
|
||||||
|
|
||||||
deployment = {
|
deployment = {
|
||||||
flake = "/run/fedipanel/flake";
|
flake = "/run/fedipanel/flake";
|
||||||
|
|
|
@ -4,9 +4,9 @@ The Fediversity Panel is a web service for managing Fediversity deployments with
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
- To obtain all tools related to this project, enter the development environment in the root directory by `nix-shell`, then similar from this directory.
|
- To obtain all tools related to this project, enter the development environment with `nix-shell`.
|
||||||
|
|
||||||
If you want to do that automatically on entering a directory:
|
If you want to do that automatically on entering this directory:
|
||||||
|
|
||||||
- [Set up `direnv`](https://github.com/nix-community/nix-direnv#installation)
|
- [Set up `direnv`](https://github.com/nix-community/nix-direnv#installation)
|
||||||
- Run `direnv allow` in the directory where repository is stored on your machine
|
- Run `direnv allow` in the directory where repository is stored on your machine
|
||||||
|
|
|
@ -21,8 +21,7 @@ in
|
||||||
pkgs.npins
|
pkgs.npins
|
||||||
manage
|
manage
|
||||||
|
|
||||||
# NixOps4 and its dependencies
|
pkgs.nixops4
|
||||||
# FIXME: grab NixOps4 and add it here
|
|
||||||
pkgs.nix
|
pkgs.nix
|
||||||
pkgs.openssh
|
pkgs.openssh
|
||||||
];
|
];
|
||||||
|
|
|
@ -147,6 +147,7 @@ in
|
||||||
NixOps4 from the package's npins-based code, we will have to do with
|
NixOps4 from the package's npins-based code, we will have to do with
|
||||||
this workaround.
|
this workaround.
|
||||||
'';
|
'';
|
||||||
|
default = pkgs.nixops4;
|
||||||
};
|
};
|
||||||
|
|
||||||
deployment = {
|
deployment = {
|
||||||
|
|
|
@ -8,4 +8,17 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
python3 = prev.lib.attrsets.recursiveUpdate prev.python3 { pkgs = extraPython3Packages; };
|
python3 = prev.lib.attrsets.recursiveUpdate prev.python3 { pkgs = extraPython3Packages; };
|
||||||
|
nixops4 =
|
||||||
|
let
|
||||||
|
sources = import ../../npins;
|
||||||
|
inherit (import sources.flake-inputs) import-flake;
|
||||||
|
inherit
|
||||||
|
(import-flake {
|
||||||
|
src = ../../.;
|
||||||
|
})
|
||||||
|
inputs
|
||||||
|
;
|
||||||
|
inherit (inputs) nixops4;
|
||||||
|
in
|
||||||
|
nixops4.packages.${prev.system}.default;
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,6 @@ let
|
||||||
secrets = {
|
secrets = {
|
||||||
SECRET_KEY = pkgs.writeText "SECRET_KEY" "secret";
|
SECRET_KEY = pkgs.writeText "SECRET_KEY" "secret";
|
||||||
};
|
};
|
||||||
nixops4Package = pkgs.hello; # FIXME: actually pass NixOps4
|
|
||||||
};
|
};
|
||||||
|
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue