moved stuff, new Image

This commit is contained in:
Nicole Dresselhaus 2023-10-02 23:11:20 +02:00
parent 1fff135bba
commit 6d28558061
13 changed files with 546 additions and 155 deletions

12
.envrc
View File

@ -1 +1,11 @@
use flake
if ! has nix_direnv_version || ! nix_direnv_version 2.3.0; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.3.0/direnvrc" "sha256-Dmd+j63L84wuzgyjITIfSxSD57Tx7v51DMxVZOsiUD8="
fi
nix_direnv_watch_file devenv.nix
nix_direnv_watch_file devenv.lock
nix_direnv_watch_file devenv.yaml
if ! use flake . --impure
then
echo "devenv could not be built. The devenv environment was not loaded. Make the necessary changes to devenv.nix and hit enter to try again." >&2
fi

5
.gitignore vendored
View File

@ -1,2 +1,7 @@
.direnv
/result
# Devenv
.devenv*
devenv.local.nix

1
.pre-commit-config.yaml Symbolic link
View File

@ -0,0 +1 @@
/nix/store/kix2g1bws3b5gdkz88zsx3r6sszrqxaj-pre-commit-config.json

65
content/About.md Normal file
View File

@ -0,0 +1,65 @@
---
title: About me - Drezil
---
<!-- markdownlint-disable-next-line -->
<img class="border border-solid w32 rounded-xl lg:rounded-3xl lg:w64 float-right" style="border-color: rgb(217 70 239);" src="/About/Nicole_small.png"/>
## Work
- **October 2023 to ???**
- You could be here. The [Red Queen](https://redqueen.ug) will get *your*
project off the ground, too.
- **March 2023 to September 2023**:
- Worked for [2lambda](https://2lambda.co)
- Silicon Valley start-up trying to beat the stock-market with fancy ML-Models
- That work kickstarted my employment at [Red Queen UG](https://redqueen.ug)
where i continue doing consulting work for [2lambda](https://2lambda.co)
while also moving into a more senior role of also building up our own team
of specialists to work on different future projects.
- **Oct. 2018 to Aug. 2021**:
- ML-Specialist at [Jobware](https://jobware.de) (Paderborn; german Job-Advertising-Platform)
- **2013-2018** several jobs at my University including
- Worked 6 Months in the Workgroup "Theoretical Computer Science" on migrating
algorithms to **CUDA**
- Tutor "Introduction to Machine Learning"
- Was awarded **Tutoring-Award** of the Faculty of Technology for excellent tutoring
- [[FFPiH|Lecture "Intermediate Functional Programming in Haskell"]]#
- Development of Pandoc-Filters for effective **generation of lecture-slides**
for Mario Botsch (Leader Workgroup Computer Graphics) using Pandoc &amp; reveal.js
## Education
- **Bachelor** "Kognitive Informatik" (Cognitive Informatics) in Bielefeld 2010-2014
- **Master** "Naturwissenschaftliche Informatik" (Informatics in the natural
sciences) 2014-2018
### Extraordinary grades (Excerpt of my Transcript)
Note: Scale of grades in Germany is 1.0 to 4.0 with 1.0 being best, 4.0 being
passing grade, 5.0 being failed grade
- **1.0 in Modern Data Analysis**
- Master course on data-analysis (time-series, core-vector-machines, gaussian
processes, ...)
- **1.0 in Computergraphics**
- Raytracing, Modern OpenGL
- **1.3 in Computer-Animation**
- Dual-Quarternion-Skinning, Character-Animation, FACS-Poses, etc.
- **1.3 in GPU-Computing (CUDA)**
- originally a 1.7 by timing (task was de-mosaicing on images, grade was
measured in ms, whereby 400ms equated to 4.0 and 100ms equated to 1.0),
but because my deep knowledge was visible in the code i was given a 1.3
after oral presentation.
- **1.0 in Parallel Algorithms and Data-Structures**
- **Ethical Hacking**
- Reverse Engineering with IDApro
## Further information
- [[Work|More details on my work-experience]]#
- [[Experience|More details of my coding]]#
- [[Extracurricular|More details of things i did beside studying at University]]#

View File

@ -1,62 +1,27 @@
---
title: About me
title: Corriculum Vitae
page:
bodyHtml: |
<script>
Array.from(
document.getElementsByClassName("open")
).forEach(
(i) => {
i.querySelector('details').setAttribute("open","")
}
);
</script>
---
# Drezil
{.open}
![[About]]
<img class="border border-solid w32 rounded-xl lg:rounded-3xl lg:w64 float-right" style=" border-color: rgb(217 70 239);" src="/About/avatar_neu.png"/>
{.open}
![[Work]]
## Work
- **March 2023 to now**:
- Worked for [2lambda](https://2lambda.co)
- That work kickstarted my employment at [Red Queen UG](https://redqueen.ug)
where i continue doing consulting work for [2lambda](https://2lambda.co)
while also moving into a more senior role of also building up our own team
of specialists to work on different future projects.
- **Oct. 2018 to Aug. 2021**:
- ML-Specialist at [Jobware](https://jobware.de) (Paderborn; german Job-Advertising-Platform)
- **2013-2018** several jobs at my University including
- Worked 6 Months in the Workgroup "Theoretical Computer Science" on migrating
algorithms to **CUDA**
- Tutor "Introduction to Machine Learning"
- Was awarded **Tutoring-Award** of the Faculty of Technology for excellent tutoring
- [[FFPiH|Lecture "Intermediate Functional Programming in Haskell"]]#
- Development of Pandoc-Filters for effective **generation of lecture-slides**
for Mario Botsch (Leader Workgroup Computer Graphics) using Pandoc &amp; reveal.js
## Education
- **Bachelor** "Kognitive Informatik" (Cognitive Informatics) in Bielefeld 2010-2014
- **Master** "Naturwissenschaftliche Informatik" (Informatics in the natural
sciences) 2014-2018
### Extraordinary grades (Excerpt of my Transcript)
Note: Scale of grades in Germany is 1.0 to 4.0 with 1.0 being best, 4.0 being
passing grade, 5.0 being failed grade
- **1.0 in Modern Data Analysis**
- Master course on data-analysis (time-series, core-vector-machines, gaussian
processes, ...)
- **1.0 in Computergraphics**
- Raytracing, Modern OpenGL
- **1.3 in Computer-Animation**
- Dual-Quarternion-Skinning, Character-Animation, FACS-Poses, etc.
- **1.3 in GPU-Computing (CUDA)**
- originally a 1.7 by timing (task was de-mosaicing on images, grade was
measured in ms, whereby 400ms equated to 4.0 and 100ms equated to 1.0),
but because my deep knowledge was visible in the code i was given a 1.3
after oral presentation.
- **1.0 in Parallel Algorithms and Data-Structures**
- **Ethical Hacking**
- Reverse Engineering with IDApro
## Further information
- [[Work|More details on my work-experience]]#
- [[Experience|More details of my coding]]#
- [[Extracurricular|More details of things i did beside studying at University]]#
{.open}
![[Experience]]
{.open}
![[Extracurricular]]

BIN
content/About/Nicole.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 311 KiB

View File

@ -1,5 +1,19 @@
# Work-Experience
- **Mar. 2023 to Sep. 2023:**
- ...
- Technologies used:
- Clojure
- ....
- Emanote
- autogenerated & linked documentation of internal modules
- integrated with manual written tutorials/notes
- crosslinking documentation of experiments with documentation of modules
- Web of knowledge
- bidirectional discovery of things tried/done in the past to optimize
finding of new strategies (meta-optimizing the decisions on what to
optimize/try)
- **Oct. 2018 to Aug. 2021**:
- ML-Specialist at [Jobware](https://jobware.de) (Paderborn; german Job-Advertising-Platform)
- Extraction/Classification of sentences from JobAds (Requirements, Benefits,

View File

@ -0,0 +1,3 @@
template:
sidebar:
collapsed: true

View File

@ -2,8 +2,6 @@
title: Mental Health
---
# Mental Health
In modern times many people struggle with mental health issues - and a am by no
means an exception. The main issue is, that most people just don't talk about it
and suffer alone, thinking they are alone, and everyone else is just doing fine

View File

@ -19,7 +19,7 @@ template:
name: /templates/layouts/myNote
sidebar:
collapsed: true
collapsed: false
# If you are hosting on GitLab Pages, you may want to remove this.
urlStrategy: pretty

416
flake.lock generated
View File

@ -1,57 +1,134 @@
{
"nodes": {
"ema": {
"flake": false,
"check-flake": {
"locked": {
"lastModified": 1660941244,
"narHash": "sha256-gGhvmSjjr07u8uWaBIv6F5WE+VCGngSVXN9mhb4BmQo=",
"lastModified": 1662502605,
"narHash": "sha256-jAT55UhabAxLAVGanxjnNdzH2/oX2ZjLsL4i2jPIP+g=",
"owner": "srid",
"repo": "ema",
"rev": "d74daa4d0d1f7a14cebd415787166fe7909fc33b",
"repo": "check-flake",
"rev": "48a17393ed4fcd523399d6602c283775b5127295",
"type": "github"
},
"original": {
"owner": "srid",
"repo": "check-flake",
"type": "github"
}
},
"devenv": {
"inputs": {
"flake-compat": "flake-compat",
"nix": "nix",
"nixpkgs": "nixpkgs",
"pre-commit-hooks": "pre-commit-hooks"
},
"locked": {
"lastModified": 1688728027,
"narHash": "sha256-qyMvHtzm7BRtwA5TBE+syQbIDNyEpfqmsHwEV+PBe+o=",
"owner": "cachix",
"repo": "devenv",
"rev": "9ba9e3b908a12ddc6c43f88c52f2bf3c1d1e82c1",
"type": "github"
},
"original": {
"owner": "cachix",
"repo": "devenv",
"rev": "9ba9e3b908a12ddc6c43f88c52f2bf3c1d1e82c1",
"type": "github"
}
},
"ema": {
"inputs": {
"check-flake": [
"emanote",
"check-flake"
],
"flake-parts": [
"emanote",
"flake-parts"
],
"flake-root": [
"emanote",
"flake-root"
],
"haskell-flake": [
"emanote",
"haskell-flake"
],
"nixpkgs": [
"emanote",
"nixpkgs"
],
"treefmt-nix": [
"emanote",
"treefmt-nix"
]
},
"locked": {
"lastModified": 1678746319,
"narHash": "sha256-vOh7o0AK2PohGa1LPTAGIPmua1beR67XowEcaI8UPhg=",
"owner": "srid",
"repo": "ema",
"rev": "b46a08d7a26491b9801642ab9c13e94f929c6a90",
"type": "github"
},
"original": {
"owner": "srid",
"ref": "master",
"repo": "ema",
"type": "github"
}
},
"emanote": {
"inputs": {
"check-flake": "check-flake",
"ema": "ema",
"flake-parts": "flake-parts",
"flake-root": "flake-root",
"haskell-flake": "haskell-flake",
"nixpkgs": "nixpkgs",
"tailwind-haskell": "tailwind-haskell"
"nixpkgs": "nixpkgs_2",
"systems": "systems_2",
"treefmt-nix": "treefmt-nix"
},
"locked": {
"lastModified": 1661096607,
"narHash": "sha256-DtSvkXRTsILCcWGcmP50fLupGroAP7EJVk3da+5yLvU=",
"owner": "EmaApps",
"lastModified": 1688491882,
"narHash": "sha256-b3hIpvCGTIWIOvkFJbkrBmlifF8JGVlOOJElE2NKKe0=",
"owner": "srid",
"repo": "emanote",
"rev": "aad6e789829ce35b042ea6fcc728ae0b76086dd8",
"rev": "d1dd7ea4ad89dc74f8d4b90650e07e788b489bb6",
"type": "github"
},
"original": {
"owner": "EmaApps",
"owner": "srid",
"repo": "emanote",
"type": "github"
}
},
"flake-compat": {
"flake": false,
"locked": {
"lastModified": 1673956053,
"narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-parts": {
"inputs": {
"nixpkgs": [
"emanote",
"nixpkgs"
]
"nixpkgs-lib": "nixpkgs-lib"
},
"locked": {
"lastModified": 1657102481,
"narHash": "sha256-62Fuw8JgPub38OdgNefkIKOodM9nC3M0AG6lS+7smf4=",
"lastModified": 1671710971,
"narHash": "sha256-YZdt5IJrfsdUTtVB94EMsBvaJbK9ve6QaZyzRuup+sY=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "608ed3502263d6f4f886d75c48fc2b444a4ab8d8",
"rev": "98bec08c58a9547d705f2f5e300ac8eef6665e52",
"type": "github"
},
"original": {
@ -60,49 +137,68 @@
"type": "github"
}
},
"flake-parts_2": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"flake-root": {
"locked": {
"lastModified": 1661009076,
"narHash": "sha256-phAE40gctVygRq3G3B6LhvD7u2qdQT21xsz8DdRDYFo=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "850d8a76026127ef02f040fb0dcfdb8b749dd9d9",
"lastModified": 1671378805,
"narHash": "sha256-yqGxyzMN2GuppwG3dTWD1oiKxi+jGYP7D1qUSc5vKhI=",
"owner": "srid",
"repo": "flake-root",
"rev": "dc7ba6166e478804a9da6881aa48c45d300075cf",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"owner": "srid",
"repo": "flake-root",
"type": "github"
}
},
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1652776076,
"narHash": "sha256-gzTw/v1vj4dOVbpBSJX4J0DwUR6LIyXo7/SuuTJp1kM=",
"lastModified": 1685518550,
"narHash": "sha256-o2d0KcvaXzTrPRIo0kOLV0/QXHhDQ5DTi+OxcjO8xqY=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "04c1b180862888302ddfb2e3ad9eaa63afc60cf8",
"rev": "a1720a10a6cfe8234c0e93907ffe81be440f4cef",
"type": "github"
},
"original": {
"owner": "numtide",
"ref": "v1.0.0",
"repo": "flake-utils",
"type": "github"
}
},
"gitignore": {
"inputs": {
"nixpkgs": [
"devenv",
"pre-commit-hooks",
"nixpkgs"
]
},
"locked": {
"lastModified": 1660459072,
"narHash": "sha256-8DFJjXG8zqoONA1vXtgeKXy68KdJL5UaXR8NtVMUbx8=",
"owner": "hercules-ci",
"repo": "gitignore.nix",
"rev": "a20de23b925fd8264fd7fad6454652e142fd7f73",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "gitignore.nix",
"type": "github"
}
},
"haskell-flake": {
"locked": {
"lastModified": 1660319056,
"narHash": "sha256-MX6PLEtXVyXXUEk3t1e0c20XRL4m4u9TFET2X0TpTdE=",
"lastModified": 1685469326,
"narHash": "sha256-esxJLsGexI/J6Fc32tJd2p3K5IOBZSCHgFvegjIpc+0=",
"owner": "srid",
"repo": "haskell-flake",
"rev": "1ca2be3c354ef2a3296cac7e54ae21e1d6ead6d7",
"rev": "996f5c2cdc67285c4990df378976f9dbf26f8401",
"type": "github"
},
"original": {
@ -111,49 +207,243 @@
"type": "github"
}
},
"lowdown-src": {
"flake": false,
"locked": {
"lastModified": 1633514407,
"narHash": "sha256-Dw32tiMjdK9t3ETl5fzGrutQTzh2rufgZV4A/BbxuD4=",
"owner": "kristapsdz",
"repo": "lowdown",
"rev": "d2c2b44ff6c27b936ec27358a2653caaef8f73b8",
"type": "github"
},
"original": {
"owner": "kristapsdz",
"repo": "lowdown",
"type": "github"
}
},
"nix": {
"inputs": {
"lowdown-src": "lowdown-src",
"nixpkgs": [
"devenv",
"nixpkgs"
],
"nixpkgs-regression": "nixpkgs-regression"
},
"locked": {
"lastModified": 1676545802,
"narHash": "sha256-EK4rZ+Hd5hsvXnzSzk2ikhStJnD63odF7SzsQ8CuSPU=",
"owner": "domenkozar",
"repo": "nix",
"rev": "7c91803598ffbcfe4a55c44ac6d49b2cf07a527f",
"type": "github"
},
"original": {
"owner": "domenkozar",
"ref": "relaxed-flakes",
"repo": "nix",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1659077768,
"narHash": "sha256-P0XIHBVty6WIuIrk2DZNvLcYev9956y1prT4zL212H8=",
"path": "/nix/store/1ha33ma070pyxw5kkcx61qi7ypzzxzah-source",
"rev": "2a93ea177c3d7700b934bf95adfe00c435f696b8",
"type": "path"
"lastModified": 1678875422,
"narHash": "sha256-T3o6NcQPwXjxJMn2shz86Chch4ljXgZn746c2caGxd8=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "126f49a01de5b7e35a43fd43f891ecf6d3a51459",
"type": "github"
},
"original": {
"id": "nixpkgs",
"type": "indirect"
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-lib": {
"locked": {
"dir": "lib",
"lastModified": 1671359686,
"narHash": "sha256-3MpC6yZo+Xn9cPordGz2/ii6IJpP2n8LE8e/ebUXLrs=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "04f574a1c0fde90b51bf68198e2297ca4e7cccf4",
"type": "github"
},
"original": {
"dir": "lib",
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-regression": {
"locked": {
"lastModified": 1643052045,
"narHash": "sha256-uGJ0VXIhWKGXxkeNnq4TvV3CIOkUJ3PAoLZ3HMzNVMw=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2",
"type": "github"
},
"original": {
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2",
"type": "github"
}
},
"nixpkgs-stable": {
"locked": {
"lastModified": 1685801374,
"narHash": "sha256-otaSUoFEMM+LjBI1XL/xGB5ao6IwnZOXc47qhIgJe8U=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "c37ca420157f4abc31e26f436c1145f8951ff373",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-23.05",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1687245362,
"narHash": "sha256-+f9tH+k3u9lSS136M2LCsl5NJTNPvhmHEiVOcypiu1E=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "205ee073b053fc4d87d5adf2ebd44ebbef7bca4d",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_3": {
"locked": {
"lastModified": 1696039360,
"narHash": "sha256-g7nIUV4uq1TOVeVIDEZLb005suTWCUjSY0zYOlSBsyE=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "32dcb45f66c0487e92db8303a798ebc548cadedc",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-23.05",
"repo": "nixpkgs",
"type": "github"
}
},
"pre-commit-hooks": {
"inputs": {
"flake-compat": [
"devenv",
"flake-compat"
],
"flake-utils": "flake-utils",
"gitignore": "gitignore",
"nixpkgs": [
"devenv",
"nixpkgs"
],
"nixpkgs-stable": "nixpkgs-stable"
},
"locked": {
"lastModified": 1688056373,
"narHash": "sha256-2+SDlNRTKsgo3LBRiMUcoEUb6sDViRNQhzJquZ4koOI=",
"owner": "cachix",
"repo": "pre-commit-hooks.nix",
"rev": "5843cf069272d92b60c3ed9e55b7a8989c01d4c7",
"type": "github"
},
"original": {
"owner": "cachix",
"repo": "pre-commit-hooks.nix",
"type": "github"
}
},
"root": {
"inputs": {
"devenv": "devenv",
"emanote": "emanote",
"flake-parts": "flake-parts_2",
"nixpkgs": [
"emanote",
"nixpkgs"
]
"nixpkgs": "nixpkgs_3",
"systems": "systems_3"
}
},
"tailwind-haskell": {
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"systems_2": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"systems_3": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"treefmt-nix": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": [
"emanote",
"nixpkgs"
]
},
"locked": {
"lastModified": 1658431129,
"narHash": "sha256-AtTxP0AMXdeU0ZTJP5R1lCtx5az3ejrmGP1klEdu1qU=",
"owner": "srid",
"repo": "tailwind-haskell",
"rev": "09a102164b1a4559892277ff38efdc9b949c5433",
"lastModified": 1675588998,
"narHash": "sha256-CLeFLmah0mxNp/EIW0PMG3YutKxVIIs4B0f5oJhwe8E=",
"owner": "numtide",
"repo": "treefmt-nix",
"rev": "70e03145e26c2f3199f4320ecd9fd343f1129c60",
"type": "github"
},
"original": {
"owner": "srid",
"ref": "master",
"repo": "tailwind-haskell",
"owner": "numtide",
"repo": "treefmt-nix",
"type": "github"
}
}

104
flake.nix
View File

@ -1,38 +1,78 @@
{
nixConfig.extra-substituters = "https://cache.garnix.io";
nixConfig.extra-trusted-public-keys = "cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=";
inputs = {
emanote.url = "github:EmaApps/emanote";
nixpkgs.follows = "emanote/nixpkgs";
flake-parts.url = "github:hercules-ci/flake-parts";
flake-parts.inputs.nixpkgs.follows = "nixpkgs";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
systems.url = "github:nix-systems/default";
devenv.url = "github:cachix/devenv/9ba9e3b908a12ddc6c43f88c52f2bf3c1d1e82c1"; # until https://github.com/cachix/devenv/issues/756 is fixed
emanote.url = "github:srid/emanote";
};
outputs = inputs@{ self, flake-parts, nixpkgs, ... }:
flake-parts.lib.mkFlake { inherit self; } {
systems = nixpkgs.lib.systems.flakeExposed;
imports = [
inputs.emanote.flakeModule
];
perSystem = { self', pkgs, system, ... }: {
emanote = {
# By default, the 'emanote' flake input is used.
# package = inputs.emanote.packages.${system}.default;
sites."default" = {
path = ./content;
pathString = "./content";
port = 8080;
baseUrl = "/";
prettyUrls = true;
};
};
devShells.default = pkgs.mkShell {
buildInputs = [
pkgs.nixpkgs-fmt
pkgs.zk
];
};
};
nixConfig = {
extra-trusted-public-keys = ["devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="
"srid.cachix.org-1:3clnql5gjbJNEvhA/WQp7nrZlBptwpXnUk6JAv8aB2M="
];
extra-substituters = [
"https://devenv.cachix.org"
"https://srid.cachix.org"
];
};
outputs = { self, nixpkgs, devenv, systems, emanote, ... } @ inputs:
let
forEachSystem = nixpkgs.lib.genAttrs (import systems);
in
{
devShells = forEachSystem
(system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
default = devenv.lib.mkShell {
inherit inputs pkgs;
modules = [
({ pkgs, emanote, ... }:
{
# https://devenv.sh/basics/
# https://devenv.sh/packages/
packages = [
pkgs.git
pkgs.docker
emanote.packages.${system}.emanote
];
enterShell = ''
echo 'Hello from "Emanote" environment.'
git --version
echo -n "Emanote version " && emanote --version
'';
# https://devenv.sh/languages/
# languages.nix.enable = true;
# https://devenv.sh/pre-commit-hooks/
pre-commit.hooks.shellcheck.enable = true;
pre-commit.hooks.markdownlint.enable = true;
pre-commit.settings.markdownlint.config = {
"MD041"= false;
};
# https://devenv.sh/processes/
# processes.ping.exec = "ping example.com";
processes = {
emanote.exec = "cd $DEVENV_ROOT/content && emanote run --port=8081";
};
scripts.showDoc.exec = "sensible-browser http://127.0.0.1:8081/";
scripts.generate.exec = "cd $DEVENV_ROOT/content && emanote gen $DEVENV_ROOT/html";
scripts.nix-cleanup.exec = "nix-env --delete-generations old && nix-store --gc && nix-collect-garbage -d";
# See full reference at https://devenv.sh/reference/options/
})
];
};
});
};
}