Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
Nix
123456789101112131415161718192021222324{ _class, lib, ... }:let nixosModule = { ... }: { options.foo = lib.mkOption { default = "bar"; }; }; darwinModule = { ... }: { options.bar = lib.mkOption { default = "foo"; }; };in{ imports = [ (lib.optionalAttrs (_class == "nixos") nixosModule) (lib.optionalAttrs (_class == "darwin") darwinModule) ];}