From 3134b2fea8d017346e8d6664e4cb0969f8642a1b Mon Sep 17 00:00:00 2001 From: Valentin Gagarin Date: Wed, 11 Jun 2025 15:35:08 +0200 Subject: [PATCH] remove unused variables --- panel/env.nix | 8 -------- panel/src/panel/settings.py | 2 -- 2 files changed, 10 deletions(-) diff --git a/panel/env.nix b/panel/env.nix index b8b3e1fb..cb0c5643 100644 --- a/panel/env.nix +++ b/panel/env.nix @@ -1,16 +1,8 @@ { - lib, - pkgs, ... }: { REPO_DIR = "/run/fedipanel/flake"; # explicitly use nix, as e.g. lix does not have configurable-impure-env - BIN_PATH = lib.makeBinPath [ - # explicitly use nix, as e.g. lix does not have configurable-impure-env - pkgs.nix - # nixops error maybe due to our flake git hook: executing 'git': No such file or directory - pkgs.git - ]; } diff --git a/panel/src/panel/settings.py b/panel/src/panel/settings.py index bbfa753a..14b1a96f 100644 --- a/panel/src/panel/settings.py +++ b/panel/src/panel/settings.py @@ -240,8 +240,6 @@ if user_settings_file is not None: # The correct thing to do here would be using a helper function such as with `get_secret()` that will catch the exception and explain what's wrong and where to put the right values. # Replacing the `USER_SETTINGS_FILE` mechanism following the comment there would probably be a good thing. -# PATH to expose to launch button -bin_path=env['BIN_PATH'] # path of the root flake to trigger nixops from, see #94. # to deploy this should be specified, for dev just use a relative path. repo_dir = env["REPO_DIR"]