Compare commits
3 Commits
cb5c5aeff2
...
cc4e001616
| Author | SHA1 | Date | |
|---|---|---|---|
| cc4e001616 | |||
| 8da99ce05d | |||
| e3ad78a790 |
@@ -1,4 +1,4 @@
|
||||
{ pkgs }:
|
||||
{ pkgs, perSystem, ... }:
|
||||
let
|
||||
helix-config = pkgs.writeText "helix.conf" ''
|
||||
[editor.cursor-shape]
|
||||
@@ -40,6 +40,9 @@ pkgs.mkShell {
|
||||
systemd-lsp
|
||||
zellij
|
||||
dua
|
||||
|
||||
python313Packages.psycopg2-binary
|
||||
perSystem.sqlit.default
|
||||
];
|
||||
|
||||
# Add environment variables
|
||||
|
||||
7
devshells/presenterm.nix
Normal file
7
devshells/presenterm.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{ pkgs, perSystem }:
|
||||
pkgs.mkShellNoCC {
|
||||
packages = with pkgs; [
|
||||
presenterm
|
||||
python3Packages.weasyprint
|
||||
];
|
||||
}
|
||||
71
flake.lock
generated
71
flake.lock
generated
@@ -21,6 +21,24 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"flake-utils": {
|
||||
"inputs": {
|
||||
"systems": "systems_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1731533236,
|
||||
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1766902085,
|
||||
@@ -37,10 +55,46 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1767640445,
|
||||
"narHash": "sha256-UWYqmD7JFBEDBHWYcqE6s6c77pWdcU/i+bwD6XxMb8A=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "9f0c42f8bc7151b8e7e5840fb3bd454ad850d8c5",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"blueprint": "blueprint",
|
||||
"nixpkgs": "nixpkgs"
|
||||
"nixpkgs": "nixpkgs",
|
||||
"sqlit": "sqlit"
|
||||
}
|
||||
},
|
||||
"sqlit": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils",
|
||||
"nixpkgs": "nixpkgs_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1768433146,
|
||||
"narHash": "sha256-rgyWXj+tTy0Igm9jtcGKkWv6LSSe0aKUBGFfLGbhrxM=",
|
||||
"owner": "Maxteabag",
|
||||
"repo": "sqlit",
|
||||
"rev": "3e1dc6d3810226cf8f7e8fdd0e0e4362414b2d4f",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "Maxteabag",
|
||||
"repo": "sqlit",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"systems": {
|
||||
@@ -57,6 +111,21 @@
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
|
||||
blueprint.url = "github:numtide/blueprint";
|
||||
blueprint.inputs.nixpkgs.follows = "nixpkgs";
|
||||
sqlit.url = "github:Maxteabag/sqlit";
|
||||
};
|
||||
|
||||
# Load the blueprint
|
||||
|
||||
1
templates/presenterm/.envrc
Normal file
1
templates/presenterm/.envrc
Normal file
@@ -0,0 +1 @@
|
||||
use flake
|
||||
10
templates/presenterm/config.yaml
Normal file
10
templates/presenterm/config.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
# yaml-language-server: $schema=https://raw.githubusercontent.com/mfontanini/presenterm/master/config-file-schema.json
|
||||
options:
|
||||
implicit_slide_ends: true
|
||||
strict_front_matter_parsing: false
|
||||
defaults:
|
||||
theme: light
|
||||
export:
|
||||
dimensions:
|
||||
columns: 106
|
||||
rows: 75
|
||||
59
templates/presenterm/flake.lock
generated
Normal file
59
templates/presenterm/flake.lock
generated
Normal file
@@ -0,0 +1,59 @@
|
||||
{
|
||||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1773597492,
|
||||
"narHash": "sha256-hQ284SkIeNaeyud+LS0WVLX+WL2rxcVZLFEaK0e03zg=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "a07d4ce6bee67d7c838a8a5796e75dff9caa21ef",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"id": "nixpkgs",
|
||||
"type": "indirect"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs",
|
||||
"utils": "utils"
|
||||
}
|
||||
},
|
||||
"systems": {
|
||||
"locked": {
|
||||
"lastModified": 1681028828,
|
||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"utils": {
|
||||
"inputs": {
|
||||
"systems": "systems"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1731533236,
|
||||
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"type": "github"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
||||
28
templates/presenterm/flake.nix
Normal file
28
templates/presenterm/flake.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
inputs = {
|
||||
utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
outputs =
|
||||
{
|
||||
self,
|
||||
nixpkgs,
|
||||
utils,
|
||||
}:
|
||||
utils.lib.eachDefaultSystem (
|
||||
system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in
|
||||
{
|
||||
devShell = pkgs.mkShellNoCC {
|
||||
PRESENTERM_CONFIG_FILE = ./config.yaml;
|
||||
packages = with pkgs; [
|
||||
presenterm
|
||||
yaml-language-server
|
||||
mermaid-cli
|
||||
python3Packages.weasyprint
|
||||
];
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user