Compare commits

...

3 commits

Author SHA1 Message Date
33bc802c21
set default value for nixops4Package 2025-06-27 14:43:17 +02:00
1c44004cfe update documentation for #375 (#406)
Reviewed-on: Fediversity/Fediversity#406
Co-authored-by: Kiara Grouwstra <kiara@procolix.eu>
Co-committed-by: Kiara Grouwstra <kiara@procolix.eu>
2025-06-27 14:40:40 +02:00
ae444d5352 simplify imports (#415)
Reviewed-on: Fediversity/Fediversity#415
Reviewed-by: Valentin Gagarin <valentin.gagarin@tweag.io>
Co-authored-by: Kiara Grouwstra <kiara@procolix.eu>
Co-committed-by: Kiara Grouwstra <kiara@procolix.eu>
2025-06-27 14:01:41 +02:00
4 changed files with 19 additions and 5 deletions

View file

@ -43,7 +43,7 @@
];
imports = [
(import "${git-hooks}/flake-module.nix")
"${git-hooks}/flake-module.nix"
inputs.nixops4.modules.flake.default
./deployment/flake-part.nix

View file

@ -36,8 +36,8 @@ in
## should go into the `./nixos` subdirectory.
nixos.module = {
imports = [
(import "${agenix}/modules/age.nix")
(import "${disko}/module.nix")
"${agenix}/modules/age.nix"
"${disko}/module.nix"
./options.nix
./nixos
];

View file

@ -4,9 +4,9 @@ The Fediversity Panel is a web service for managing Fediversity deployments with
## Development
- To obtain all tools related to this project, enter the development environment with `nix-shell`.
- To obtain all tools related to this project, enter the development environment in the root directory by `nix-shell`, then similar from this directory.
If you want to do that automatically on entering this directory:
If you want to do that automatically on entering a directory:
- [Set up `direnv`](https://github.com/nix-community/nix-direnv#installation)
- Run `direnv allow` in the directory where repository is stored on your machine

View file

@ -2,6 +2,7 @@
config,
pkgs,
lib,
inputs,
...
}:
let
@ -147,6 +148,19 @@ in
NixOps4 from the package's npins-based code, we will have to do with
this workaround.
'';
default =
let
sources = import ../../npins;
inherit (import sources.flake-inputs) import-flake load-flake;
inherit
(import-flake {
src = ../../.;
})
inputs
;
inherit (inputs) nixops4;
in
(load-flake nixops4).packages.${pkgs.system}.default;
};
deployment = {