Something went wrong. Try again.
my over complex system configurations
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344{ lib, ... }:let inherit (lib.attrsets) getAttrFromPath; inherit (lib.lists) any;
/** check if a predicate for any user config is true
# Arguments
- [conf] the configuration that nixosConfigurations provides - [cond] predicate function to check against config variable
# Type
``` anyHome :: AttrSet -> (Any -> Bool) -> Bool ```
# Example
```nix anyHome config (cfg: cfg.programs.hyprland.enable) => true ``` */ anyHome = conf: cond: let list = map ( user: getAttrFromPath [ "home-manager" "users" user ] conf ) conf.garden.system.users; in any cond list;in{ inherit anyHome;}