Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Commit

Permalink
Switch to flake
Browse files Browse the repository at this point in the history
  • Loading branch information
garbas committed Feb 15, 2021
1 parent 2fb808f commit 3755455
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 9 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/cron.yml
Expand Up @@ -16,8 +16,16 @@ jobs:
with:
nix_path: nixpkgs=channel:nixos-unstable

- name: Installing nixFlakes
run: |
nix-env -iA nixpkgs.nixFlakes
echo 'experimental-features = nix-command flakes' | sudo tee -a /etc/nix/nix.conf
echo "$HOME/.nix-profile/bin" >> $GITHUB_PATH
- name: Building planet.nixos.org
run: nix-shell --run "venus-planet planet.ini && ./fix.sh"
run: |
nix develop --command venus-planet planet.ini
nix develop --command ./fix.sh
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v1.1
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/main.yml
Expand Up @@ -17,8 +17,16 @@ jobs:
with:
nix_path: nixpkgs=channel:nixos-unstable

- name: Installing nixFlakes
run: |
nix-env -iA nixpkgs.nixFlakes
echo 'experimental-features = nix-command flakes' | sudo tee -a /etc/nix/nix.conf
echo "$HOME/.nix-profile/bin" >> $GITHUB_PATH
- name: Building planet.nixos.org
run: nix-shell --run "venus-planet planet.ini && ./fix.sh"
run: |
nix develop --command venus-planet planet.ini
nix develop --command ./fix.sh
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v1.1
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/pulls.yml
Expand Up @@ -15,8 +15,16 @@ jobs:
with:
nix_path: nixpkgs=channel:nixos-unstable

- name: Installing nixFlakes
run: |
nix-env -iA nixpkgs.nixFlakes
echo 'experimental-features = nix-command flakes' | sudo tee -a /etc/nix/nix.conf
echo "$HOME/.nix-profile/bin" >> $GITHUB_PATH
- name: Building planet.nixos.org
run: nix-shell --run "venus-planet planet.ini && ./fix.sh"
run: |
nix develop --command venus-planet planet.ini
nix develop --command ./fix.sh
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v1.1
Expand Down
6 changes: 0 additions & 6 deletions default.nix

This file was deleted.

26 changes: 26 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions flake.nix
@@ -0,0 +1,18 @@
{
description = "The planet.nixos.org";

inputs.nixpkgs = { url = "nixpkgs/nixos-20.09"; };

outputs =
{ self
, nixpkgs
}:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in {
defaultPackage."${system}" = pkgs.mkShell {
buildInputs = with pkgs; [ venus entr python3 ];
};
};
}

0 comments on commit 3755455

Please sign in to comment.