Skip to content

Commit

Permalink
slides/add-nixcon-na-2024 (#35)
Browse files Browse the repository at this point in the history
Added slides for NixCon NA 2024.
  • Loading branch information
djacu authored Mar 8, 2024
1 parent f6bc8c2 commit 9786f0e
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 3 deletions.
13 changes: 10 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,14 @@
cp -R dist/* $out/
'';
};

slides =
import
./slides
{
inherit pkgs;
parentPath = ./slides;
};
in {
devShells = {
poetry = pkgs.mkShell {
Expand All @@ -96,8 +104,7 @@
};
};
packages =
{
}
slides
// {
inherit
site
Expand All @@ -113,7 +120,7 @@
};

checks =
{}
slides
// {
inherit
site
Expand Down
38 changes: 38 additions & 0 deletions slides/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
pkgs,
parentPath,
}: let
inherit (pkgs) lib;

markdowns = (
builtins.removeAttrs
(builtins.readDir parentPath)
["default.nix"]
);

md2slides = name: _: (
let
slide-name = "slides-" + (lib.removeSuffix ".md" name);
filepath = (builtins.toString parentPath) + "/" + name;
in
(builtins.trace filepath)
lib.nameValuePair
slide-name
(
pkgs.writeShellApplication
{
name = slide-name;
runtimeInputs = [pkgs.reveal-md];
text = ''
reveal-md ${filepath}
'';
}
)
);

slides =
lib.mapAttrs'
md2slides
markdowns;
in
slides
30 changes: 30 additions & 0 deletions slides/nixcon-na-2024.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
theme: beige
---

# Basic NixOS Modules

Daniel Baker (@djacu)

---

# Shout Out

- @davidnuon
- @fricklerhandwerk
- @ibizaman
- @infinisil
- @sarcasticadmin
- @YorikSar

---

# Source

https://github.com/djacu/

https://nixos-modules.nix.みんな/

https://nixos-modules.nix.xn--q9jyb4c/

https://github.com/djacu/nixos-modules-lessons/

1 comment on commit 9786f0e

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.