Skip to content

Commit

Permalink
refactor: use enum as option type
Browse files Browse the repository at this point in the history
  • Loading branch information
filipkania committed Dec 29, 2024
1 parent 19bc0d6 commit b8e184e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/system/defaults/screencapture.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ with lib;
};

system.defaults.screencapture.target = mkOption {
type = types.nullOr types.str;
type = types.nullOr (types.enum [ "file" "clipboard" "preview" "mail" "messages" ]);
default = null;
description = ''
Target to which screencapture should save screenshot to. The default is "file".
Expand Down

0 comments on commit b8e184e

Please sign in to comment.