Skip to content

Commit

Permalink
fix incorrect lib.mkIf
Browse files Browse the repository at this point in the history
  • Loading branch information
Kareem-Medhat committed Mar 29, 2024
1 parent 298f345 commit 0e97931
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/startup.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ in
dataFile = lib.mkOption {
type = lib.types.attrsOf lib.types.str;
default = { };
description = "Datafiles, typically for use from autstart scripts.";
description = "Datafiles, typically for use in autostart scripts.";
};
scriptsDir = lib.mkOption {
type = lib.types.str;
Expand All @@ -44,7 +44,7 @@ in
};

config = lib.mkIf
(cfg.enable && builtins.length (builtins.attrNames cfg.startup) != 0)
(cfg.enable && builtins.length (builtins.attrNames cfg.startup.autoStartScript) != 0)
{
xdg.dataFile = lib.mkMerge [
# Autostart scripts
Expand Down

0 comments on commit 0e97931

Please sign in to comment.