From 62c54a3da00d6990630cb1564ef9d0a3d3c394a5 Mon Sep 17 00:00:00 2001 From: Carsten Kragelund Date: Tue, 25 Apr 2023 11:54:21 +0200 Subject: [PATCH] Fix error on non-wsl and graphical hosts --- hosts/common/wsl.nix | 2 +- users/carsten/pkgs/default.nix | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/hosts/common/wsl.nix b/hosts/common/wsl.nix index 4be6ab9..9dd88a4 100644 --- a/hosts/common/wsl.nix +++ b/hosts/common/wsl.nix @@ -3,7 +3,7 @@ , pkgs , ... }: { - config = lib.mkIf (!config.wsl.enable) { + config = lib.mkIf (!config.wsl.enable or false) { boot.loader = { systemd-boot = { enable = true; diff --git a/users/carsten/pkgs/default.nix b/users/carsten/pkgs/default.nix index af4ef26..f09db47 100644 --- a/users/carsten/pkgs/default.nix +++ b/users/carsten/pkgs/default.nix @@ -188,7 +188,10 @@ fd jq mcfly - pinentry-curses + (if osConfig.graphical then + pinentry-gtk2 + else + pinentry-curses) unzip yq wezterm @@ -217,7 +220,6 @@ gparted numberstation pavucontrol - pinentry-gtk2 recursive wireplumber # Local