9 lines
348 B
Bash
Executable file
9 lines
348 B
Bash
Executable file
#!/bin/bash
|
|
function eval() {
|
|
local modulePath="$1";
|
|
local property="$2";
|
|
local nixPkgs='import (fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-24.05") { config = {}; overlays = []; }';
|
|
nix eval --file "$modulePath" "${@:3}" --apply "_: (($nixPkgs).lib.evalModules { modules = [ _ ]; }).config.$property";
|
|
}
|
|
|
|
eval $@;
|