From af4c29d542728707e63b5de8a31f4a216a537294 Mon Sep 17 00:00:00 2001 From: Ember Keske Date: Mon, 31 Oct 2022 16:23:39 +0100 Subject: [PATCH] add nix flake --- config.yaml | 6 ++-- content/legal.md | 2 +- flake.lock | 75 ++++++++++++++++++++++++++++++++++++++++++++++++ flake.nix | 48 +++++++++++++++++++++++++++++++ 4 files changed, 127 insertions(+), 4 deletions(-) create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/config.yaml b/config.yaml index 9804be9..50b8cfc 100644 --- a/config.yaml +++ b/config.yaml @@ -11,13 +11,13 @@ params: **Hey there!** - I'm n0emis. You may also know me as Ember. + I'm ember. - I'm nonbinary. My English pronouns are they/them. In general I prefer gender neutral pronouns, but if your language doesn't have them you may use feminine pronouns. + I'm nonbinary. My English pronouns are she/they. Please use feminine or gender neutral pronouns for me. - You can find most of my projects on my [Gitea](https://git.n0emis.eu/n0emis). + You can find most of my projects on my [Gitea](https://git.n0emis.eu/n0emis) or over on GitHub. socialIcons: - name: "gitea" diff --git a/content/legal.md b/content/legal.md index 3870d40..3938389 100644 --- a/content/legal.md +++ b/content/legal.md @@ -5,7 +5,7 @@ url: /legal/ Verantwortlich für dieses Angebot ist gemäß § 5 TMG / § 55 RStV sowie Art. 4 Nr. 7 DSGVO: ``` -Simeon Keske +Ember Keske Wackenroderweg 10 37075 Göttingen diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..015a9b8 --- /dev/null +++ b/flake.lock @@ -0,0 +1,75 @@ +{ + "nodes": { + "flake-utils": { + "locked": { + "lastModified": 1667077288, + "narHash": "sha256-bdC8sFNDpT0HK74u9fUkpbf1MEzVYJ+ka7NXCdgBoaA=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "6ee9ebb6b1ee695d2cacc4faa053a7b9baa76817", + "type": "github" + }, + "original": { + "id": "flake-utils", + "type": "indirect" + } + }, + "flake-utils-plus": { + "locked": { + "lastModified": 1667077288, + "narHash": "sha256-bdC8sFNDpT0HK74u9fUkpbf1MEzVYJ+ka7NXCdgBoaA=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "6ee9ebb6b1ee695d2cacc4faa053a7b9baa76817", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1667142599, + "narHash": "sha256-OLJxsg9VqfKjFkerOxWtNIkibsCvxsv5A8wNWO1MeWk=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "412b9917cea092f3d39f9cd5dead4effd5bc4053", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "papermod": { + "flake": false, + "locked": { + "lastModified": 1662202785, + "narHash": "sha256-hz6uONOyRLErNYtNG6wEnXQ23W4nlC0Imgcc5m3rmf0=", + "owner": "adityatelange", + "repo": "hugo-PaperMod", + "rev": "3a0a4811cbc07c0bea09ef55b3c1bfb39b48cddd", + "type": "github" + }, + "original": { + "owner": "adityatelange", + "repo": "hugo-PaperMod", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "flake-utils-plus": "flake-utils-plus", + "nixpkgs": "nixpkgs", + "papermod": "papermod" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..92a3e33 --- /dev/null +++ b/flake.nix @@ -0,0 +1,48 @@ +{ + inputs = { + nixpkgs.url = github:NixOS/nixpkgs/nixos-unstable; + flake-utils-plus.url = github:numtide/flake-utils; + + # Website template + papermod = { + url = github:adityatelange/hugo-PaperMod; + flake = false; + }; + }; + + outputs = inputs@{ self, nixpkgs, flake-utils, papermod, ... }: + { + overlay = final: prev: { + n0emis-eu-website = with final; stdenv.mkDerivation { + name = "n0emis-eu"; + src = self; + buildInputs = [ hugo ]; + buildPhase = '' + mkdir -p themes + ln -s ${papermod} themes/PaperMod + hugo --minify + ''; + installPhase = '' + cp -r public $out + ''; + }; + }; + } // ( + flake-utils.lib.eachDefaultSystem (system: + let + pkgs = import nixpkgs { + inherit system; + overlays = [ self.overlay ]; + }; + in { + packages.leona-is-website = pkgs.n0emis-eu-website; + defaultPackage = pkgs.n0emis-eu-website; + devShell = pkgs.mkShell { + packages = with pkgs; [ + hugo + ]; + }; + } + ) + ); +}