chore: switch laptop to greetd #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "CD" | |
on: | |
pull_request: | |
push: | |
jobs: | |
CD: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v25 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
- uses: cachix/cachix-action@v14 | |
with: | |
name: suyashtnt | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- run: cachix use helix | |
- run: cachix use niri | |
- run: cachix use fortuneteller2k | |
- run: cachix use nix-community | |
- run: nix build -L | |
- name: Deploy | |
if: github.ref == 'refs/heads/main' | |
env: | |
CACHIX_ACTIVATE_TOKEN: "${{ secrets.CACHIX_ACTIVATE_TOKEN }}" | |
run: | | |
cachix push suyashtnt ./result | |
cachix deploy activate ./result |