Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions projects-old/Rosenpass/default.nix

This file was deleted.

55 changes: 55 additions & 0 deletions projects/Rosenpass/default.nix
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to delete projects-old/Rosenpass as well

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just wanted to be sure I got all the data out of there correctly first.
I will delete the directory now.

Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
lib,
pkgs,
sources,
}@args:

{
metadata = {
summary = "Rosenpass is a formally verified, post-quantum secure VPN that uses WireGuard to transport the actual data.";
subgrants = [
"Rosenpass"
"Rosenpass-API"
"Rosenpass-integration"
];
links = {
docs = {
text = "Rosenpass documentation";
url = "https://rosenpass.eu/docs/";
};
docker = {
text = "Rosenpass in Docker";
url = "https://github.com/rosenpass/rosenpass/blob/main/docker/USAGE.md";
};
build = {
text = "Build from source";
url = "http://rosenpass.eu/docs/rosenpass-tool/compilation/#installation-via-binary-files";
};
};
};

nixos.modules.programs = {
rosenpass = {
name = "rosenpass";
module = ./programs/basic/module.nix;
examples.basic = {
module = ./programs/basic/examples/basic.nix;
description = "";
tests.basic = null;
};
};
};

nixos.modules.services = {
rosenpass = {
name = "rosenpass";
module = "${sources.inputs.nixpkgs}/nixos/modules/services/networking/rosenpass.nix";
examples.basic = {
module = ./services/basic/examples/basic.nix;
description = "";
tests.with-sops = import ./tests args;
tests.without-sops = "${sources.inputs.nixpkgs}/nixos/tests/rosenpass.nix";
};
};
};
}
5 changes: 5 additions & 0 deletions projects/Rosenpass/programs/basic/examples/basic.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{ ... }:

{
programs.rosenpass.enable = true;
}
21 changes: 21 additions & 0 deletions projects/Rosenpass/programs/basic/module.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
config,
lib,
pkgs,
...
}:
let
cfg = config.programs.rosenpass;
in
{
options.programs.rosenpass = {
enable = lib.mkEnableOption "rosenpass";
};

config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
rosenpass
rosenpass-tools
];
};
}
5 changes: 5 additions & 0 deletions projects/Rosenpass/services/basic/examples/basic.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{ ... }:

{
services.rosenpass.enable = true;
}