forked from fediversity/fediversity
Compare commits
No commits in common. "5150985d363afc430cc558bd2a4a9328aa20b718" and "bd1cfd7a7cc5699cf2e70f16540d204edfc01599" have entirely different histories.
5150985d36
...
bd1cfd7a7c
10 changed files with 15 additions and 37 deletions
|
@ -7,16 +7,15 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lockfile:
|
lockfile:
|
||||||
runs-on: native
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
- name: Install Nix
|
||||||
|
uses: cachix/install-nix-action@v31
|
||||||
- name: Install npins
|
- name: Install npins
|
||||||
run: nix-shell --run "npins update"
|
run: nix profile install 'nixpkgs#npins'
|
||||||
- name: Create PR
|
- name: Update npins sources
|
||||||
uses: peter-evans/create-pull-request@v7
|
uses: getchoo/update-npins@v0
|
||||||
with:
|
with:
|
||||||
token: "${{ secrets.DEPLOY_KEY }}"
|
token: "${{ secrets.DEPLOY_KEY }}"
|
||||||
branch: npins-update
|
|
||||||
commit-message: "npins: update sources"
|
|
||||||
title: "npins: update sources"
|
|
||||||
|
|
|
@ -55,7 +55,6 @@ in
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
[
|
[
|
||||||
pkgs.npins
|
|
||||||
pkgs.nix-unit
|
pkgs.nix-unit
|
||||||
test-loop
|
test-loop
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{
|
{
|
||||||
inputs,
|
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
|
@ -10,7 +9,7 @@ let
|
||||||
inherit (lib.attrsets) concatMapAttrs optionalAttrs;
|
inherit (lib.attrsets) concatMapAttrs optionalAttrs;
|
||||||
inherit (lib.strings) removeSuffix;
|
inherit (lib.strings) removeSuffix;
|
||||||
sources = import ../../npins;
|
sources = import ../../npins;
|
||||||
inherit (sources) agenix disko;
|
inherit (sources) nixpkgs agenix disko;
|
||||||
|
|
||||||
secretsPrefix = ../../secrets;
|
secretsPrefix = ../../secrets;
|
||||||
secrets = import (secretsPrefix + "/secrets.nix");
|
secrets = import (secretsPrefix + "/secrets.nix");
|
||||||
|
@ -27,7 +26,7 @@ in
|
||||||
hostPublicKey = config.fediversityVm.hostPublicKey;
|
hostPublicKey = config.fediversityVm.hostPublicKey;
|
||||||
};
|
};
|
||||||
|
|
||||||
inherit (inputs) nixpkgs;
|
inherit nixpkgs;
|
||||||
|
|
||||||
## The configuration of the machine. We strive to keep in this file only the
|
## The configuration of the machine. We strive to keep in this file only the
|
||||||
## options that really need to be injected from the resource. Everything else
|
## options that really need to be injected from the resource. Everything else
|
||||||
|
|
|
@ -21,9 +21,6 @@ let
|
||||||
makeResourceModule =
|
makeResourceModule =
|
||||||
{ vmName, isTestVm }:
|
{ vmName, isTestVm }:
|
||||||
{
|
{
|
||||||
# TODO(@fricklerhandwerk): this is terrible but IMO we should just ditch flake-parts and have our own data model for how the project is organised internally
|
|
||||||
_module.args = { inherit inputs; };
|
|
||||||
|
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
./common/resource.nix
|
./common/resource.nix
|
||||||
|
|
|
@ -25,22 +25,6 @@
|
||||||
"url": null,
|
"url": null,
|
||||||
"hash": "1w2gsy6qwxa5abkv8clb435237iifndcxq0s79wihqw11a5yb938"
|
"hash": "1w2gsy6qwxa5abkv8clb435237iifndcxq0s79wihqw11a5yb938"
|
||||||
},
|
},
|
||||||
"disko": {
|
|
||||||
"type": "GitRelease",
|
|
||||||
"repository": {
|
|
||||||
"type": "GitHub",
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "disko"
|
|
||||||
},
|
|
||||||
"pre_releases": false,
|
|
||||||
"version_upper_bound": null,
|
|
||||||
"release_prefix": null,
|
|
||||||
"submodules": false,
|
|
||||||
"version": "v1.12.0",
|
|
||||||
"revision": "7121f74b976481bc36877abaf52adab2a178fcbe",
|
|
||||||
"url": "https://api.github.com/repos/nix-community/disko/tarball/v1.12.0",
|
|
||||||
"hash": "0wbx518d2x54yn4xh98cgm65wvj0gpy6nia6ra7ns4j63hx14fkq"
|
|
||||||
},
|
|
||||||
"flake-inputs": {
|
"flake-inputs": {
|
||||||
"type": "GitRelease",
|
"type": "GitRelease",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
|
@ -27,7 +27,7 @@ in
|
||||||
pkgs.openssh
|
pkgs.openssh
|
||||||
];
|
];
|
||||||
env = {
|
env = {
|
||||||
DEPLOYMENT_FLAKE = toString ../.;
|
DEPLOYMENT_FLAKE = ../.;
|
||||||
DEPLOYMENT_NAME = "test";
|
DEPLOYMENT_NAME = "test";
|
||||||
NPINS_DIRECTORY = toString ../npins;
|
NPINS_DIRECTORY = toString ../npins;
|
||||||
CREDENTIALS_DIRECTORY = toString ./.credentials;
|
CREDENTIALS_DIRECTORY = toString ./.credentials;
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
tests = {
|
tests = {
|
||||||
mastodon = pkgs.nixosTest ./tests/mastodon.nix;
|
mastodon = import ./tests/mastodon.nix { inherit pkgs; };
|
||||||
pixelfed-garage = pkgs.nixosTest ./tests/pixelfed-garage.nix;
|
pixelfed-garage = import ./tests/pixelfed-garage.nix { inherit pkgs; };
|
||||||
peertube = pkgs.nixosTest ./tests/peertube.nix;
|
peertube = import ./tests/peertube.nix { inherit pkgs; };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,7 +42,7 @@ let
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
pkgs.nixosTest {
|
||||||
name = "mastodon";
|
name = "mastodon";
|
||||||
|
|
||||||
nodes = {
|
nodes = {
|
||||||
|
|
|
@ -161,7 +161,7 @@ let
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
pkgs.nixosTest {
|
||||||
name = "peertube";
|
name = "peertube";
|
||||||
|
|
||||||
nodes = {
|
nodes = {
|
||||||
|
|
|
@ -114,7 +114,7 @@ let
|
||||||
${seleniumQuit}'';
|
${seleniumQuit}'';
|
||||||
|
|
||||||
in
|
in
|
||||||
{
|
pkgs.nixosTest {
|
||||||
name = "test-pixelfed-garage";
|
name = "test-pixelfed-garage";
|
||||||
|
|
||||||
nodes = {
|
nodes = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue