summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
authorGrace Yoder <grace_yoder@outlook.com>2026-09-27 16:26:07 -0400
committerGrace Yoder <grace_yoder@outlook.com>2026-09-27 16:26:33 -0400
commitb4edc3d5997f172cf4cc3b56d6f831772e2133d2 (patch)
tree4c9128de03d6ed02480ed1a2dd79f24aa3c0ba2b /home
parentb9eb0edbec2786ccbc5f444eaf783644ec67941a (diff)
purdue cs fix
Diffstat (limited to 'home')
-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;
+ };
}