summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xhome/helix.nix4
-rwxr-xr-xhome/typst.nix15
2 files changed, 15 insertions, 4 deletions
diff --git a/home/helix.nix b/home/helix.nix
index d159a5a..9453baf 100755
--- a/home/helix.nix
+++ b/home/helix.nix
@@ -1,10 +1,12 @@
{
config,
+ lib,
pkgs,
...
}:
let
+ isPurdueCS = lib.hasSuffix "cs.purdue.edu" (import ../host.nix).name;
nhx = builtins.fetchTarball {
url = "https://github.com/Ra77a3l3-jar/nhx/archive/0f11db8ed173522b73c7323e03d8fbe604594b13.tar.gz";
sha256 = "0dcnjw7fw1nsylqpjcrl825yq1plw5aqnnqd21zl2pshn8px51b7";
@@ -46,7 +48,7 @@ in
lsp.enable = true;
};
- plugins = {
+ plugins = lib.mkIf (!isPurdueCS) {
oil.enable = true;
juju.enable = true;
who.enable = true;
diff --git a/home/typst.nix b/home/typst.nix
index a5b1147..0bdf352 100755
--- a/home/typst.nix
+++ b/home/typst.nix
@@ -1,7 +1,11 @@
-{ config, pkgs, ... }:
+{ config, lib, pkgs, ... }:
let
dots = toString ./..;
+ packagePath = "typst/packages/local/grace-personal-template/0.1.0";
+ template = {
+ source = config.lib.file.mkOutOfStoreSymlink "${dots}/typst";
+ };
in
{
fonts.fontconfig.enable = true;
@@ -15,6 +19,11 @@ in
home.sessionVariables.TYPST_FONT_PATHS = "${config.home.profileDirectory}/share/fonts";
- home.file."Library/Application Support/typst/packages/local/grace-personal-template/0.1.0".source =
- config.lib.file.mkOutOfStoreSymlink "${dots}/typst";
+ home.file = lib.optionalAttrs pkgs.stdenv.isDarwin {
+ "Library/Application Support/${packagePath}" = template;
+ };
+
+ xdg.dataFile = lib.optionalAttrs pkgs.stdenv.isLinux {
+ "${packagePath}" = template;
+ };
}