summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-01-19 21:47:23 +0100
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-01-19 21:47:23 +0100
commit601d527cee80b8cbeb296e2bf4c9dc78adc5578e (patch)
tree4ef7028d3d6b9d526596ac8f88747293ceffc2c7
parent39ee92d13f6fa0bbeafedc046cb71473198073ba (diff)
downloadlow-puszcza-601d527cee80b8cbeb296e2bf4c9dc78adc5578e.tar.gz
low-puszcza-601d527cee80b8cbeb296e2bf4c9dc78adc5578e.zip
Update workflows
-rw-r--r--.github/workflows/deploy.yml17
-rw-r--r--.github/workflows/update.yml2
2 files changed, 7 insertions, 12 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 57d0fb0..36af759 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -15,19 +15,12 @@ jobs:
 
     - name: Installing Nix
       uses: cachix/install-nix-action@v12
+      with:
+        nix_path: nixpkgs=channel:nixpkgs-unstable
+        install_url: https://github.com/numtide/nix-flakes-installer/releases/download/nix-2.4pre20201221_9fab14a/install
+        extra_nix_config: |
+          experimental-features = nix-command flakes
 
-    - name: Install unstable channel
-      run: |
-        nix-channel --add https://nixos.org/channels/nixpkgs-unstable
-        nix-channel --update
-    - name: Installing NixFlakes
-      run: |
-        nix-env -iA nixpkgs.nixFlakes
-        echo 'experimental-features = nix-command flakes' | sudo tee -a /etc/nix/nix.conf
-        nix --version
-        cat /etc/nix/nix.conf
-        PATH="$HOME/.nix-profile/bin:$PATH"
-        echo "PATH=${PATH}" >> $GITHUB_ENV
     - uses: cachix/cachix-action@v8
       with:
         name: pn
diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml
index 252a109..4e22e3a 100644
--- a/.github/workflows/update.yml
+++ b/.github/workflows/update.yml
@@ -10,6 +10,8 @@ jobs:
         uses: actions/checkout@v2
       - name: Installing Nix
         uses: cachix/install-nix-action@v12
+        with:
+          nix_path: nixpkgs=channel:nixos-unstable
 
       - name: update.sh
         run: |