diff --git a/flake.nix b/flake.nix index 44f34c5..afe5d35 100644 --- a/flake.nix +++ b/flake.nix @@ -26,7 +26,7 @@ nixosModules = { default = { lib, pkgs, config, ... }: let - sso-bsn = self.packages.${pkgs.system}.default; + sso-bsn = self.packages.${pkgs.stdenv.hostPlatform.system}.default; gen-secret = pkgs.writeShellScript "gen-secret" '' (umask 077; [ -f $1/$2 ] || ${pkgs.coreutils}/bin/head -c 128 /dev/urandom | ${pkgs.coreutils}/bin/base64 -w0 > $1/$2) ''; diff --git a/shell.nix b/shell.nix index d130820..9e87c73 100644 --- a/shell.nix +++ b/shell.nix @@ -10,8 +10,8 @@ mkShell { packages = [elixir elixir-ls sqlite-interactive] - ++ lib.lists.optional (pkgs.system == "x86_64-linux") inotify-tools - ++ lib.lists.optionals (pkgs.system == "aarch64-darwin") (with pkgs.darwin.apple_sdk.frameworks; [ + ++ lib.lists.optional (pkgs.stdenv.hostPlatform.system == "x86_64-linux") inotify-tools + ++ lib.lists.optionals (pkgs.stdenv.hostPlatform.system == "aarch64-darwin") (with pkgs.darwin.apple_sdk.frameworks; [ CoreFoundation CoreServices ]);