# general commands nix flake new --template # create new flake from nix flake show | grep -Ev "omitted|unknown" # show all and nix flake check --no-sandbox # run tests and build all and cd && nix fmt # run formatter # nix run commands nix run # # run , export DEBUG=1 to run tests and use the next command is build is slow nix run # --extra-substituters https://nix-community.cachix.org --extra-trusted-public-keys nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs= nix run --impure github:nix-community/nixGL nix run # # run when cuda in non-NixOS, export NIXPKGS_ALLOW_UNFREE=1 if needed nix run #nixosConfigurations..config.system.build.vm # run in virtual machine (replace with vmWithDisko if using Disko) nix run nixpkgs#nixos-generators -- --flake # --format iso # generate iso from # specific commands bash /hosts//deploy-requirements.sh # run once before first deploy bash /hosts//deploy.sh # deploy remotely nixos-rebuild switch --flake # # deploy locally # options git+ssh://git@// # remote private repository :/ # remote public repository ~/// # local repository (requires git clone to that directory)