From 858ddb2c8a53d606f08ab5cb5dc1a38a172783eb Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Thu, 28 Apr 2022 12:43:52 -0400 Subject: [PATCH] Fix missing mkIf --- home/common-linux.nix | 5 ++++- home/modules/programs/my-sway/default.nix | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/home/common-linux.nix b/home/common-linux.nix index 7543a9d..36b3159 100644 --- a/home/common-linux.nix +++ b/home/common-linux.nix @@ -1,6 +1,9 @@ { pkgs, config, lib, ... }: with lib; { - imports = [ ./modules/linux/graphical ./modules/X11/xfce4-notifyd.nix ]; + imports = [ + ./modules/linux/graphical + ./modules/X11/xfce4-notifyd.nix + ]; config = (mkIf (strings.hasSuffix "linux" pkgs.system) { ## Gnome-keyring services.gnome-keyring = { diff --git a/home/modules/programs/my-sway/default.nix b/home/modules/programs/my-sway/default.nix index e008055..5fb4372 100644 --- a/home/modules/programs/my-sway/default.nix +++ b/home/modules/programs/my-sway/default.nix @@ -194,7 +194,7 @@ in ''; }; - config.systemd.user.targets.sway-session = { + config.systemd.user.targets.sway-session = mkIf cfg.enable { Unit = { Description = "sway compositor session"; Documentation = [ "man:systemd.special(7)" ];