Skip to content

lib.validators

a function that will append a list of groups if they exist in config.users.groups

  • [config] the configuration that nixosConfigurations provides
  • [groups] a list of groups to check for
ifTheyExist :: AttrSet -> List -> List
ifTheyExist config ["wheel" "users"]
=> ["wheel"]

check if a predicate for any user config is true

  • [conf] the configuration that nixosConfigurations provides
  • [cond] predicate function to check against config variable
anyHome :: AttrSet -> (Any -> Bool) -> Bool
anyHome config (cfg: cfg.programs.hyprland.enable)
=> true