nix machine / user configurations

feat(qol): add more types of scopes for commit

ptr.pet 650352f6 6256c1be

verified
Changed files
+2 -1
+2 -1
commit.nu
···
] {
let types = ["feat" "build" "ci" "fix" "refactor" "chore" "style"]
let hosts: list<string> = (nix eval ".#nixosConfigurations" --apply builtins.attrNames --json --quiet | from json)
+
let scopes = $hosts ++ ["qol" "treewide" "deploy"]
let ty: string = unwrap-or-else $type { $types | input list 'choose type' --fuzzy }
-
let scp: string = unwrap-or-else $scope { $hosts | input list 'choose host' --fuzzy }
+
let scp: string = unwrap-or-else $scope { $scopes | input list 'choose scope' --fuzzy }
let commit_msg = $"($ty)\(($scp)\): ($msg)"
git commit -m $commit_msg ...$rest
}