Skip to content

Bud command does not work due to error "This script must be run either from the flake's devshell" #382

@pio2398

Description

@pio2398

Since commit 1df67a3

Expected Behavior

Current Behavior

✘ piotrek@Pc1Nix  ~/Projects/nixos  ➦ 1df67a3  git checkout 1df67a3
Found existing alias for "git checkout". You should use: "gco"
HEAD is now at 1df67a3 update digga lock
piotrek@Pc1Nix  ~/Projects/nixos  ➦ 1df67a3  bud
This script must be run either from the flake's devshell or its root path must be specified
✘ piotrek@Pc1Nix  ~/Projects/nixos  ➦ 1df67a3  git checkout f10a8fd
Found existing alias for "git checkout". You should use: "gco"
Previous HEAD position was 1df67a3 update digga lock
HEAD is now at f10a8fd chore: update nvfecher
direnv: loading ~/Projects/nixos/.envrc
direnv: using flake
direnv: ([/nix/store/l6flm08wv6cgy0n6myzc8g3k68wiqayf-direnv-2.28.0/bin/direnv export zsh]) is taking a while to execute. Use CTRL-C to give up.
direnv: renewed cache
🔨 Welcome to nixos

[devos]

agenix
bud - Your highly customizable system ctl
cachix - Command line client for Nix binary cache hosting https://cachix.org
deploy-rs - A Simple multi-profile Nix-flake deploy tool
nix
nvfetcher - Generate nix sources expr for the latest version of packages

[docs]

mdbook - Create books from MarkDown

[general commands]

menu - prints this menu

[linter]

editorconfig-checker - A tool to verify that your files are in harmony with your .editorconfig
nixpkgs-fmt - Nix code formatter for nixpkgs

direnv: export +DEVSHELL_DIR +DEVSHELL_ROOT +IN_NIX_SHELL +NIXPKGS_PATH +NIX_SSL_CERT_FILE ~NIX_PROFILES ~PATH ~XDG_DATA_DIRS
piotrek@Pc1Nix  ~/Projects/nixos  ➦ f10a8fd  bud

Usage: bud COMMAND [ARGS]

Commands:
build HOST BUILD Build a variant of your configuration from system.build

get [DEST] Copy the desired template to DEST

home [switch] (user@fqdn | USER HOST | USER) Home-manager config of USER from HOST or host-less portable USER for current architecture

install HOST [ARGS] Shortcut for nixos-install

rebuild HOST (switch|boot|test) Shortcut for nixos-rebuild

repl [FLAKE] Enter a repl with the flake's outputs

ssh-show HOST USER | USER@HOSTNAME Show target host's SSH ed25519 key

up Generate /home/piotrek/Projects/nixos/hosts/Pc1Nix/default.nix

update [INPUT] Update and commit /home/piotrek/Projects/nixos/flake.lock file or specific input

vm HOST Generate & run a one-shot vm for HOST

piotrek@Pc1Nix  ~/Projects/nixos  ➦ f10a8fd

Possible Solution

Steps to Reproduce

Context

Your Environment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions