This repository was archived by the owner on Sep 27, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +259
-0
lines changed
Expand file tree Collapse file tree 4 files changed +259
-0
lines changed Original file line number Diff line number Diff line change 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'
Original file line number Diff line number Diff line change 1+ result
2+
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments