From 49859a39b0ca84f1aeee530700f48c0b99cae9e6 Mon Sep 17 00:00:00 2001 From: Rory& Date: Tue, 3 Jun 2025 04:38:13 +0200 Subject: Refer to system properly --- flake.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index a895d5b..5283bd6 100644 --- a/flake.nix +++ b/flake.nix @@ -86,12 +86,12 @@ }; } )) // { - nixosModules.default = { config, lib, ...}: { + nixosModules.default = { pkgs, config, lib, ...}: { options.services.safensound = { enable = lib.mkEnableOption "Enable SafeNSound service"; package = lib.mkOption { type = lib.types.package; - default = self.packages.${lib.system}.default; + default = self.packages.${pkgs.stdenv.hostPlatform.system}.default; description = "The SafeNSound service package to run."; }; port = lib.mkOption { -- cgit 1.5.1