aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--options.nix14
1 files changed, 12 insertions, 2 deletions
diff --git a/options.nix b/options.nix
index 02d69f59..581ce181 100644
--- a/options.nix
+++ b/options.nix
@@ -1,8 +1,15 @@
packages:
-{ lib, pkgs, ... }:
+{
+ lib,
+ pkgs,
+ config,
+ ...
+}:
let
inherit (lib) types mkOption mkEnableOption;
+
+ cfg = config.environment.hakurei;
in
{
@@ -43,7 +50,10 @@ in
sharefs = {
package = mkOption {
type = types.package;
- default = packages.${pkgs.stdenv.hostPlatform.system}.sharefs;
+ default = pkgs.linkFarm "sharefs" {
+ "bin/sharefs" = "${cfg.package}/libexec/sharefs";
+ "bin/mount.fuse.sharefs" = "${cfg.package}/libexec/sharefs";
+ };
description = "The sharefs package to use.";
};