From 00e4b40a1d0da3b37544c896aa05433738fae545 Mon Sep 17 00:00:00 2001 From: Ricardo Band Date: Sat, 19 Oct 2024 14:47:34 +0200 Subject: [PATCH] add flake --- .gitignore | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ flake.nix | 25 +++++++++++++++++ 2 files changed, 107 insertions(+) create mode 100644 flake.nix diff --git a/.gitignore b/.gitignore index a136337..88eb77d 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,83 @@ *.pdf + +# Created by https://www.toptal.com/developers/gitignore/api/linux,windows,macos,direnv +# Edit at https://www.toptal.com/developers/gitignore?templates=linux,windows,macos,direnv + +### direnv ### +.direnv +.envrc + +### Linux ### +*~ + +# temporary files which can be created if a process still has a handle open of a deleted file +.fuse_hidden* + +# KDE directory preferences +.directory + +# Linux trash folder which might appear on any partition or disk +.Trash-* + +# .nfs files are created when an open file is removed but is still being accessed +.nfs* + +### macOS ### +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +### macOS Patch ### +# iCloud generated files +*.icloud + +### Windows ### +# Windows thumbnail cache files +Thumbs.db +Thumbs.db:encryptable +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msix +*.msm +*.msp + +# Windows shortcuts +*.lnk + +# End of https://www.toptal.com/developers/gitignore/api/linux,windows,macos,direnv diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..2c1680f --- /dev/null +++ b/flake.nix @@ -0,0 +1,25 @@ +{ + description = "slides for talks"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + flake-utils.url = "github:numtide/flake-utils"; + }; + + outputs = { self, nixpkgs, flake-utils }: + (flake-utils.lib.eachDefaultSystem + (system: + let + pkgs = import nixpkgs { inherit system; }; + in + { + formatter = pkgs.nixpkgs-fmt; + devShells.default = pkgs.mkShell { + packages = with pkgs; [ + gnumake + marp-cli + ]; + }; + }) + ); +}