Skip to content

feat(git): add signature using GPG #67

feat(git): add signature using GPG

feat(git): add signature using GPG #67

Workflow file for this run

name: Build Config
on:
pull_request:
paths:
- '**.nix'
push:
branches:
- master
paths:
- '**.nix'
jobs:
home-manager:
strategy:
matrix:
config: [ laptop, desktop ]
name: Build home-manager
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Nix
uses: cachix/install-nix-action@v17
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Set user config
run: |
# Change username
sed "s|username = \"leo\"|username = \"$USER\"|" -i 'user/leo.nix'
# Workaround, maybe try using a flake check or something
sed -i "7 i dotfiles.repository = \"$(pwd)\";" user/leo.nix
git submodule update --init
- name: Build and switch to home-manager env
run: |
# Build and switch to home-manager env
nix build .#homeConfigurations.${{ matrix.config }}.activationPackage --impure
./result/activate