diff --git a/default.nix b/default.nix index b956241..5d8eaa3 100644 --- a/default.nix +++ b/default.nix @@ -26,7 +26,7 @@ sha256 = { "x86_64-linux" = "sha256-41Brz7Oxkk9T+tD6uztq8ZxbpC/gFFUJsy20xeGZtM8="; "aarch64-darwin" = "sha256-8gFgTV1qYrC3iw5/AyeEOMAYtcEK7wTXie+Z9RDrqUI="; - }.${pkgs.system}; + }.${pkgs.stdenv.hostPlatform.system}; }; hash = builtins.substring 11 32 "${./mix.lock}"; in diff --git a/flake.nix b/flake.nix index a236fc1..da7289e 100644 --- a/flake.nix +++ b/flake.nix @@ -57,14 +57,14 @@ ''; in lib.mkIf cfg.enable { home.sessionVariables.FRAJTANO_DIR = cfg.dir; - home.packages = [self.packages.${pkgs.system}.default]; + home.packages = [self.packages.${pkgs.stdenv.hostPlatform.system}.default]; systemd.user.services.frajtano = { Unit.Description = "frajtano"; Unit.After = ["default.target"]; Service.Type = "notify"; Service.Environment = ["'FRAJTANO_DIR=${cfg.dir}'" "'FRAJTANO_CONFIG=${configFile}'"]; - Service.ExecSearchPath = ["${self.packages.${pkgs.system}.default}/bin"]; + Service.ExecSearchPath = ["${self.packages.${pkgs.stdenv.hostPlatform.system}.default}/bin"]; Service.ExecStart = "frajtano start"; Install.WantedBy = ["default.target"]; }; @@ -76,7 +76,7 @@ FRAJTANO_DIR = "${cfg.dir}"; FRAJTANO_CONFIG = "${configFile}"; }; - ProgramArguments = ["${self.packages.${pkgs.system}.default}/bin/frajtano" "start"]; + ProgramArguments = ["${self.packages.${pkgs.stdenv.hostPlatform.system}.default}/bin/frajtano" "start"]; RunAtLoad = true; KeepAlive = true; }; diff --git a/shell.nix b/shell.nix index 58f1cbd..c9c8b1b 100644 --- a/shell.nix +++ b/shell.nix @@ -11,8 +11,8 @@ mkShell { inputsFrom = [ ownPkgs.default ]; packages = [elixir elixir-ls] - ++ 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 ]);