self = with lib.fileset; toSource {
root = ./.;
fileset =
- intersection
- (unions [
- ./home-manager
- ./homes
- ./hosts
- ./nixos
- ./nixpkgs
- ./share
- ./users
- ./shell.nix
- ])
- (fileFilter
- (file: lib.any file.hasExt [
- "clear"
- "conf"
- "cred"
- "crt"
- "css"
- "el"
- "hs"
- "json"
- "nix"
- "patch"
- "pem"
- "pub"
- "sh"
- "theme"
- "vim"
- ]) ./.);
+ let exts = [ "clear" "conf" "cred" "crt" "css" "el" "hs" "json" "nix" "patch" "pem" "pub" "sh" "theme" "vim" ]; in
+ unions [
+ (fileFilter (file: lib.any file.hasExt exts) ./home-manager)
+ (fileFilter (file: lib.any file.hasExt exts) ./homes)
+ (fileFilter (file: lib.any file.hasExt exts) ./hosts)
+ (fileFilter (file: lib.any file.hasExt exts) ./nixos)
+ (fileFilter (file: lib.any file.hasExt exts) ./nixpkgs)
+ (fileFilter (file: lib.any file.hasExt exts) ./share)
+ (fileFilter (file: lib.any file.hasExt exts) ./users)
+ ./shell.nix
+ ];
};
in
rec {