Skip to content
This repository was archived by the owner on Sep 27, 2025. It is now read-only.

Commit 74a2243

Browse files
committed
Initial commit
0 parents  commit 74a2243

File tree

4 files changed

+259
-0
lines changed

4 files changed

+259
-0
lines changed

.github/workflows/gh-pages.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: "github pages"
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
workflow_dispatch:
8+
9+
permissions:
10+
actions: read
11+
contents: read
12+
pages: write
13+
id-token: write
14+
deployments: write
15+
16+
concurrency:
17+
group: "github pages"
18+
cancel-in-progress: false
19+
20+
jobs:
21+
build:
22+
name: Build search
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Checkout repository
26+
uses: actions/checkout@v4
27+
28+
- name: Install Nix
29+
uses: cachix/install-nix-action@v30
30+
31+
- uses: DeterminateSystems/magic-nix-cache-action@v8
32+
with:
33+
diagnostic-endpoint: false
34+
use-flakehub: false
35+
36+
- name: Build search
37+
run: nix build -L
38+
39+
- name: Upload artifact
40+
uses: actions/upload-pages-artifact@v3
41+
with:
42+
path: result
43+
44+
deploy:
45+
name: Deploy to GitHub Pages
46+
runs-on: ubuntu-latest
47+
needs: build
48+
steps:
49+
- name: Deploy to GitHub Pages
50+
id: deployment
51+
uses: actions/deploy-pages@v4
52+
if: github.event_name == 'push'

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
result
2+

flake.lock

Lines changed: 159 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
description = "Flake for search.secshell.de";
3+
4+
inputs = {
5+
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
6+
secshell.url = "github:secshellnet/nixos";
7+
search = {
8+
url = "github:NuschtOS/search";
9+
inputs = {
10+
nixpkgs.follows = "nixpkgs-unstable";
11+
};
12+
};
13+
flake-utils.url = "github:numtide/flake-utils";
14+
};
15+
16+
outputs =
17+
{
18+
nixpkgs-unstable,
19+
secshell,
20+
search,
21+
flake-utils,
22+
...
23+
}:
24+
flake-utils.lib.eachDefaultSystem
25+
(system:
26+
let
27+
pkgs = (import nixpkgs-unstable) {
28+
inherit system;
29+
};
30+
in
31+
{
32+
packages = {
33+
default = search.packages.${system}.mkSearch {
34+
specialArgs.modulesPath = nixpkgs-unstable + "/nixos/modules";
35+
modules = [
36+
secshell.nixosModules.default
37+
{
38+
_module.args = { inherit pkgs; };
39+
}
40+
];
41+
title = "NixOS Modules Search";
42+
urlPrefix = "https://github.com/secshellnet/nixos/blob/main/";
43+
};
44+
};
45+
});
46+
}

0 commit comments

Comments
 (0)