From 739d3e0feec6cd11b426d5b63a802574f0070826 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Sat, 18 Jan 2025 21:44:23 +0300 Subject: [PATCH] Bash: Start sway only when enabled. --- home/program/bash/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/home/program/bash/default.nix b/home/program/bash/default.nix index 2e902b3..73a2c9c 100644 --- a/home/program/bash/default.nix +++ b/home/program/bash/default.nix @@ -1,8 +1,9 @@ { - util, + config, + lib, pkgs, secret, - config, + util, ... }: let @@ -42,7 +43,8 @@ in # Export all functions. export -f $(find_function | tr '\n' ' ') export -f find_function - + '' + + lib.optionalString config.module.sway.enable '' # Autostart Sway. if [[ -z $DISPLAY ]] && [[ "$(tty)" = "/dev/tty1" ]]; then exec sway