mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-14 16:42:43 +02:00
feat: update justfile
This commit is contained in:
@@ -44,14 +44,14 @@ history:
|
|||||||
repl:
|
repl:
|
||||||
nix repl -f flake:nixpkgs
|
nix repl -f flake:nixpkgs
|
||||||
|
|
||||||
# remove all generations older than 7 days
|
# remove all old generations
|
||||||
# on darwin, you may need to switch to root user to run this command
|
# on darwin, you may need to switch to root user to run this command
|
||||||
[group('nix')]
|
[group('nix')]
|
||||||
clean:
|
clean:
|
||||||
# Wipe out NixOS's history
|
# Wipe out NixOS's history
|
||||||
sudo nix profile wipe-history --profile /nix/var/nix/profiles/system --older-than 7d
|
sudo nix profile wipe-history --profile /nix/var/nix/profiles/system
|
||||||
# Wipe out home-manager's history
|
# Wipe out home-manager's history
|
||||||
nix profile wipe-history --profile $"($env.XDG_STATE_HOME)/nix/profiles/home-manager" --older-than 7d
|
nix profile wipe-history --profile $"($env.XDG_STATE_HOME)/nix/profiles/home-manager"
|
||||||
|
|
||||||
# Garbage collect all unused nix store entries
|
# Garbage collect all unused nix store entries
|
||||||
[group('nix')]
|
[group('nix')]
|
||||||
@@ -328,30 +328,26 @@ list-systemd:
|
|||||||
|
|
||||||
# =================================================
|
# =================================================
|
||||||
#
|
#
|
||||||
# Nixpkgs Review via Github Action
|
# GitHub CLI + Nixpkgs Review via Github Action
|
||||||
# https://github.com/ryan4yin/nixpkgs-review-gha
|
# https://github.com/ryan4yin/nixpkgs-review-gha
|
||||||
#
|
#
|
||||||
# =================================================
|
# =================================================
|
||||||
|
|
||||||
[linux]
|
[group('github')]
|
||||||
[group('nixpkgs')]
|
|
||||||
gh-login:
|
gh-login:
|
||||||
gh auth login -h github.com --skip-ssh-key --git-protocol ssh --web
|
gh auth login -h github.com --skip-ssh-key --git-protocol ssh --web
|
||||||
|
|
||||||
# Run nixpkgs-review for PR
|
# Run nixpkgs-review for PR
|
||||||
[linux]
|
|
||||||
[group('nixpkgs')]
|
[group('nixpkgs')]
|
||||||
pkg-review pr:
|
pkg-review pr:
|
||||||
gh workflow run review.yml --repo ryan4yin/nixpkgs-review-gha -f x86_64-darwin=no -f post-result=true -f pr={{pr}}
|
gh workflow run review.yml --repo ryan4yin/nixpkgs-review-gha -f x86_64-darwin=no -f post-result=true -f pr={{pr}}
|
||||||
|
|
||||||
# Run package tests for PR
|
# Run package tests for PR
|
||||||
[linux]
|
|
||||||
[group('nixpkgs')]
|
[group('nixpkgs')]
|
||||||
pkg-test pr pname:
|
pkg-test pr pname:
|
||||||
gh workflow run review.yml --repo ryan4yin/nixpkgs-review-gha -f x86_64-darwin=no -f post-result=true -f pr={{pr}} -f extra-args="-p {{pname}}.passthru.tests"
|
gh workflow run review.yml --repo ryan4yin/nixpkgs-review-gha -f x86_64-darwin=no -f post-result=true -f pr={{pr}} -f extra-args="-p {{pname}}.passthru.tests"
|
||||||
|
|
||||||
# View the summary of a workflow
|
# View the summary of a workflow
|
||||||
[linux]
|
|
||||||
[group('nixpkgs')]
|
[group('nixpkgs')]
|
||||||
pkg-summary:
|
pkg-summary:
|
||||||
gh workflow view review.yml --repo ryan4yin/nixpkgs-review-gha
|
gh workflow view review.yml --repo ryan4yin/nixpkgs-review-gha
|
||||||
|
|||||||
Reference in New Issue
Block a user