aboutsummaryrefslogtreecommitdiffhomepage
path: root/options.nix
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-12-27 22:52:12 +0900
committerOphestra <cat@gensokyo.uk>2025-12-27 23:14:08 +0900
commite42ea32dbe9283d14a7c0e8746059bc5ef97f6cd (patch)
tree9ddc8d4bb6438d00a8e04b1cdf07df5e3570f7eb /options.nix
parente7982b4ee9cc935d6b89f291087524cdee229d09 (diff)
nix: configure sharefs via fileSystems
Turns out this did not work because in the vm test harness, virtualisation.fileSystems completely and silently overrides fileSystems, causing its contents to not even be evaluated anymore. This is not documented as far as I can tell, and is not obvious by any stretch of the imagination. The current hack is cargo culted from nix-community/impermanence and hopefully lasts until this project fully replaces nix. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'options.nix')
-rw-r--r--options.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/options.nix b/options.nix
index 15e6f9f6..02d69f59 100644
--- a/options.nix
+++ b/options.nix
@@ -41,6 +41,12 @@ in
};
sharefs = {
+ package = mkOption {
+ type = types.package;
+ default = packages.${pkgs.stdenv.hostPlatform.system}.sharefs;
+ description = "The sharefs package to use.";
+ };
+
user = mkOption {
type = types.str;
default = "sharefs";