adding gitea nix action and attic config
All checks were successful
gitea-deepak/nixconf/pipeline/head This commit looks good
All checks were successful
gitea-deepak/nixconf/pipeline/head This commit looks good
This commit is contained in:
parent
bbe9475175
commit
f43ad7a49d
36
.gitea/workflows/nixtest.yaml
Normal file
36
.gitea/workflows/nixtest.yaml
Normal file
@ -0,0 +1,36 @@
|
||||
name: testing nix stuff
|
||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
nix:
|
||||
strategy:
|
||||
fail-fast: true
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
|
||||
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
||||
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
- name: List files in the repository
|
||||
run: |
|
||||
ls ${{ gitea.workspace }}
|
||||
- uses: cachix/install-nix-action@v31
|
||||
|
||||
- name: Install Nix
|
||||
uses: DeterminateSystems/nix-installer-action@v9
|
||||
|
||||
- run: nix build --version
|
||||
|
||||
- name: Setup Attic Cache
|
||||
uses: ryanccn/attic-action@3354ae812cb672e1381be4c7914204c44db53866
|
||||
with:
|
||||
endpoint: ${{ secrets.ATTIC_ENDPOINT }}
|
||||
cache: ${{ secrets.ATTIC_CACHE }}
|
||||
token: ${{ secrets.ATTIC_TOKEN }}
|
||||
|
||||
- name: Build Nix Package
|
||||
run: nix-build test.nix
|
@ -19,6 +19,7 @@ in
|
||||
# exec ${pkgs.nixVersions.git}/bin/nix --experimental-features "nix-command flakes" "$@"
|
||||
# '')
|
||||
pkgs.cachix
|
||||
pkgs.attic-client
|
||||
pkgs.kubectl
|
||||
pkgs.bat
|
||||
pkgs.eza
|
||||
|
@ -41,6 +41,11 @@ in
|
||||
experimental-features = nix-command flakes
|
||||
'';
|
||||
|
||||
nix.settings = {
|
||||
trusted-substituters = [ "http://attic.baklava" ];
|
||||
trusted-public-keys = [ "systems:tvbHIThn7MAwvgMSiYR3ULVlL6cBrA40afqGuextnNQ=" ];
|
||||
};
|
||||
|
||||
nixpkgs.overlays = [
|
||||
customPackageOverlay
|
||||
];
|
||||
|
Loading…
x
Reference in New Issue
Block a user