Fix missing mkIf

This commit is contained in:
Natsu Kagami 2022-04-28 12:43:52 -04:00
parent d1366a95c6
commit 858ddb2c8a
Signed by: nki
GPG key ID: 7306B3D3C3AD6E51
2 changed files with 5 additions and 2 deletions

View file

@ -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 = {

View file

@ -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)" ];