mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2024-11-30 00:18:44 +01:00
add typst configs
This commit is contained in:
parent
8fb63359d1
commit
ffdf893e15
|
@ -4,6 +4,7 @@
|
||||||
./notifications.nix
|
./notifications.nix
|
||||||
./terminal.nix
|
./terminal.nix
|
||||||
./compositing.nix
|
./compositing.nix
|
||||||
|
./typst.nix
|
||||||
./panels
|
./panels
|
||||||
./xmonad
|
./xmonad
|
||||||
./sway
|
./sway
|
||||||
|
|
33
modules/desktop-environment/home/typst.nix
Normal file
33
modules/desktop-environment/home/typst.nix
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
packages = {
|
||||||
|
typst-configs = pkgs.fetchFromGitea {
|
||||||
|
domain = "forge.katzen.cafe";
|
||||||
|
owner = "schrottkatze";
|
||||||
|
repo = "typst-configs";
|
||||||
|
rev = "3a09cd374f0508c8e0c5d95f5ad7358adc50bafa";
|
||||||
|
};
|
||||||
|
flow = pkgs.fetchFromGithub {
|
||||||
|
owner = "MultisampledNight";
|
||||||
|
repo = "flow";
|
||||||
|
rev = "f5c653c706d80145165ec684b217b803a0246e8c";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
mkTypstPath = name: ".local/share/typst/packages/local/${name}/0.1.0";
|
||||||
|
in {
|
||||||
|
home.file = {
|
||||||
|
typst-configs = {
|
||||||
|
target = mkTypstPath "typst-configs";
|
||||||
|
source = packages.typst-configs;
|
||||||
|
recursive = true;
|
||||||
|
};
|
||||||
|
flow = {
|
||||||
|
target = mkTypstPath "flow";
|
||||||
|
source = packages.flow;
|
||||||
|
recursive = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue