dotfiles/.config/nushell/conf.d/99-attic.nu
2024-07-16 13:27:43 +02:00

14 lines
449 B
Text

def "attic bpush" [
cache:string, # The Attic cache to push to
flake:string, # The flake reference to build
...nixargs:string, # Extra arguments for Nix
--nom(-n), # Use Nom
] {
let outpath = (^(if $nom { "nom" } else { "nix" })
build
--no-link
--print-out-paths
$flake
...$nixargs)
attic push $cache $outpath
}