1.6 KiB
1.6 KiB
pagedMov's Nix Aliases
- fetchfromgh
- Description:
- Given a username and repo name like
someuser/somerepo, generates a fullpkgs.fetchFromGitHubcall. Uses the most recent commit.
- Given a username and repo name like
- Usage:
fetchfromgh someuser/somerepo
- Example:
fetchfromgh pagedMov/nixos-config- Returns:
src = pkgs.fetchFromGitHub { owner = "pagedMov"; repo = "nixos-config"; rev = "fcf19c65971c667f67abf57bcaf88be410fb0759"; hash = "sha256-z+3E+ueSd2QNqtrbBKt8bwIfboPCXSUrGn690Hc/kl0="; };
- Returns:
- Defined in:
modules/home/scripts/nix/fetchfromgh.nix
- Description:
- garbage-collect
- Description:
- Runs the Nix garbage collector and also deletes all files in
.local/share/Trash.
- Runs the Nix garbage collector and also deletes all files in
- Usage:
garbage-collect- Does not take any arguments.
- Defined in:
modules/home/scripts/nix/garbage-collect.nix
- Description:
- nsp
- Description:
- Simple alias for
nix-shell -p.
- Simple alias for
- Usage:
nsp <package name>
- Example:
nsp hello
- Defined in:
modules/home/scripts/nix/nsp.nix
- Description:
- rebuild
- Description:
- Combines
nh os switchandnh home switchinto a single command.
- Combines
- Usage:
rebuild -h- Runsnh home switch -c <currenthostname> $FLAKEPATHrebuild -s- Runsnh os switch -H <currenthostname> $FLAKEPATHrebuild -a- Runs both of the above commands.- Adding
nbefore any flag (e.g.,rebuild -na) performs a dry run.
- Defined in:
modules/home/scripts/nix/rebuild.nix
- Description: