Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: nix #14

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@

abercompsoc\.github\.io\.iml
/.sass-cache/

_site
.jekyll-cache
24 changes: 9 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,19 @@
abercompsoc.github.io
=====================
# abercompsoc.github.io

A jekell site cargo-culted from [daktilo](https://github.com/kronik3r/daktilo).
A jekyll site cargo-culted from [daktilo](https://github.com/kronik3r/daktilo).

Developing
----------
## Developing

If you're lucky enough to be running NixOS, run:
1) Install Jekyll. For more info see the [installation guide](http://jekyllrb.com/docs/installation/).
If you're lucky enough to be running Nix, run:

```bash
$ nix-shell . --run "jekyll s"
nix develop # to use the flake
nix-shell # to use the shell.nix
```

in this directory to generate and serve the site locally.

If you're on another platform, you'll need to install jekyll manually, then
run:
2) Run the following command to start the Jekyll server:

```bash
$ jekyll s
jekyll s
```

See the [installation guide](http://jekyllrb.com/docs/installation/) for more
details on manually installing.
7 changes: 0 additions & 7 deletions default.nix

This file was deleted.

27 changes: 27 additions & 0 deletions flake.lock

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

21 changes: 21 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";

outputs = {nixpkgs, ...}: let
systems = [
"aarch64-darwin"
"aarch64-linux"
"armv6l-linux"
"armv7l-linux"
"x86_64-darwin"
"x86_64-linux"
];
forEachSystem = nixpkgs.lib.genAttrs systems;

pkgsForEach = nixpkgs.legacyPackages;
in {
devShells = forEachSystem (system: {
default = pkgsForEach.${system}.callPackage ./shell.nix {};
});
};
}
4 changes: 4 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{pkgs ? import <nixpkgs> {}}:
pkgs.mkShell {
buildInputs = with pkgs; [jekyll];
}