2 ms·
The "-i" shortflag is for "--install". The "-A" shortflag indicates that the argument given is an "attribute path". Roughly: without the "-A", the command sea
by rgoulter 5y ago
The "-i" shortflag is for "--install".
The "-A" shortflag indicates that the argument given is an "attribute path".
Roughly: without the "-A", the command searches for packages named "git" and installs that. With the "-A", it will install the "git" package from nixpkgs.
- teekert 5y agoAh, guessed wrong, well I should have known, on a declarative system there should not be a way to add packages without declaring them anyway :) (I'm glad I'm wrong)
- rgoulter 5y ago> on a declarative system there should not be a way to add packages without declaring them anyway :) (I'm glad I'm wrong) home-manager is one popular way of declaring what packages should be installed. The nixpkgs manual explains a different way of declaratively managing packages: https://nixos.org/manual/nixpkgs/stable/#sec-declarative-package-management https://nixos.org/manual/nixpkgs/stable/#sec-declarative-pac...
- pxc 5y agoNixOS is declarative in a comprehensive way OOTB, so that there's no other way to do it Nix the standalone package manager offers some imperative ways of doing things, plus you can declare a package that depends on all your needs. Then there are a couple of optional declarative systems that you can use with standalone Nix which add extra functionality, like configuring services in a NixOS-like way or managing your dotfiles