1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-29 11:07:44 +00:00

Compare commits

...

4 commits

Author SHA1 Message Date
a889cc675e
feat: jj clone & jj cl alias 2025-05-08 01:26:49 +03:00
05fa7662a2
feat: update lock 2025-05-08 00:21:50 +03:00
4ebce41676
feat: don't -q ssh 2025-05-08 00:19:49 +03:00
24eabcf2da
feat: jj alises 2025-05-08 00:07:06 +03:00
3 changed files with 51 additions and 29 deletions

48
flake.lock generated
View file

@ -70,11 +70,11 @@
"rust-analyzer-src": "rust-analyzer-src" "rust-analyzer-src": "rust-analyzer-src"
}, },
"locked": { "locked": {
"lastModified": 1745995211, "lastModified": 1746599904,
"narHash": "sha256-hf6Xu3KS06WyE/3dqV96iLGx3jIYQq9e68iCEFHrt04=", "narHash": "sha256-bykoJKLSbNANMY5nedzVYa2Z3GF8poQsNTHAnc19alM=",
"owner": "nix-community", "owner": "nix-community",
"repo": "fenix", "repo": "fenix",
"rev": "0db04339c4e4c0fd42dbbaebe3590a67cbd12aa3", "rev": "589e863010225278a042480fed5b6feacb364a65",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -125,11 +125,11 @@
"systems": "systems_3" "systems": "systems_3"
}, },
"locked": { "locked": {
"lastModified": 1744389758, "lastModified": 1746536662,
"narHash": "sha256-ltnGWY4ub2KfWQloPkTRVSY1lWg9RoOeuvU1jvDsDeY=", "narHash": "sha256-rcHrc39hdGcMg2MRzcj2nMW07ga4YbJMkcMUkeew+MU=",
"owner": "RGBCube", "owner": "RGBCube",
"repo": "GitHub2Forgejo", "repo": "GitHub2Forgejo",
"rev": "875305869a90017a83991d80134a91f7b4d166c2", "rev": "ba581ae4f2726257682ad626d4f657898d44ce05",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -145,11 +145,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1746040799, "lastModified": 1746632058,
"narHash": "sha256-osgPX/SzIpkR50vev/rqoTEAVkEcOWXoQXmbzsaI4KU=", "narHash": "sha256-Mp5Bbvb+YlFEZ76C/0wFS6C1lRfH3D60u465wFNlnS0=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "5f217e5a319f6c186283b530f8c975e66c028433", "rev": "708074ae6db9e0468e4f48477f856e8c2d059795",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -185,11 +185,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1745816321, "lastModified": 1746254942,
"narHash": "sha256-Gyh/fkCDqVNGM0BWvk+4UAS17w2UI6iwnbQQCmc1TDI=", "narHash": "sha256-Y062AuRx6l+TJNX8wxZcT59SSLsqD9EedAY0mqgTtQE=",
"owner": "LnL7", "owner": "LnL7",
"repo": "nix-darwin", "repo": "nix-darwin",
"rev": "4515dacafb0ccd42e5395aacc49fd58a43027e01", "rev": "760a11c87009155afa0140d55c40e7c336d62d7a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -208,11 +208,11 @@
"nixpkgs-24_11": "nixpkgs-24_11" "nixpkgs-24_11": "nixpkgs-24_11"
}, },
"locked": { "locked": {
"lastModified": 1745416927, "lastModified": 1746637515,
"narHash": "sha256-jg725STLRgsIAgrvjbRJQEP0F0w+rmvDJ64EN65p6EI=", "narHash": "sha256-bUq2uHmsfY3SpJrR4dpncITykufTiD2320JsOKgIYl0=",
"owner": "simple-nixos-mailserver", "owner": "simple-nixos-mailserver",
"repo": "nixos-mailserver", "repo": "nixos-mailserver",
"rev": "ab52efd622a9f7dca269a49edbbea6b6b7294f57", "rev": "a7d2b05a9920d90f5eb8076f449acdb6c1ad79ca",
"type": "gitlab" "type": "gitlab"
}, },
"original": { "original": {
@ -224,11 +224,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1745930157, "lastModified": 1746461020,
"narHash": "sha256-y3h3NLnzRSiUkYpnfvnS669zWZLoqqI6NprtLQ+5dck=", "narHash": "sha256-7+pG1I9jvxNlmln4YgnlW4o+w0TZX24k688mibiFDUE=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "46e634be05ce9dc6d4db8e664515ba10b78151ae", "rev": "3730d8a308f94996a9ba7c7138ede69c1b9ac4ae",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -271,11 +271,11 @@
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1745930157, "lastModified": 1746461020,
"narHash": "sha256-y3h3NLnzRSiUkYpnfvnS669zWZLoqqI6NprtLQ+5dck=", "narHash": "sha256-7+pG1I9jvxNlmln4YgnlW4o+w0TZX24k688mibiFDUE=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "46e634be05ce9dc6d4db8e664515ba10b78151ae", "rev": "3730d8a308f94996a9ba7c7138ede69c1b9ac4ae",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -302,11 +302,11 @@
"rust-analyzer-src": { "rust-analyzer-src": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1745949276, "lastModified": 1746522319,
"narHash": "sha256-9ZK31t2HUiGdLLnDafrRnSrrO12JwqcAFbrJ9nRwh0Y=", "narHash": "sha256-q+Qo00BFgXN6xKrsrQI1P7Z3K1s2zKT0GNl0h8DwBH4=",
"owner": "rust-lang", "owner": "rust-lang",
"repo": "rust-analyzer", "repo": "rust-analyzer",
"rev": "78a488dd5e7e4f17162001519665795e6e68b6f8", "rev": "debaef80be92d957f52d6e89c86286556075ea47",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -25,6 +25,28 @@ in {
aliases.".." = [ "edit" "@-" ]; aliases.".." = [ "edit" "@-" ];
aliases.",," = [ "edit" "@+" ]; aliases.",," = [ "edit" "@+" ];
aliases.pull = [ "git" "fetch" ];
aliases.push = [ "git" "push" ];
aliases.clone = [ "git" "clone" "--colocate" ];
aliases.cl = [ "git" "clone" "--colocate" ];
aliases.init = [ "git" "init" "--colocate" ];
aliases.i = [ "git" "init" "--colocate" ];
aliases.c = "commit";
aliases.ci = [ "commit" "--interactive" ];
aliases.e = "edit";
aliases.r = "rebase";
aliases.s = "squash";
aliases.si = [ "squash" "--interactive" ];
aliases.tug = ["bookmark" "move" "--from" "closest_bookmark(@-)" "--to" "@-"];
revset-aliases."closest_bookmark(to)" = "heads(::to & bookmarks())";
revsets.log = "present(@) | present(trunk()) | ancestors(remote_bookmarks().., 2) | reachable(@, all())"; revsets.log = "present(@) | present(trunk()) | ancestors(remote_bookmarks().., 2) | reachable(@, all())";
ui.default-command = "status"; ui.default-command = "status";
@ -33,7 +55,7 @@ in {
ui.diff.tool = [ "${getExe pkgs.difftastic}" "--color" "always" "$left" "$right" ]; ui.diff.tool = [ "${getExe pkgs.difftastic}" "--color" "always" "$left" "$right" ];
ui.conflict-marker-style = "snapshot"; ui.conflict-marker-style = "snapshot";
ui.graph.style = if config.theme.cornerRadius > 0 then "curved" else "square"; ui.graph.style = if config.theme.cornerRadius > 0 then "curved" else "square";
templates.draft_commit_description = /* python */ '' templates.draft_commit_description = /* python */ ''
concat( concat(
@ -52,7 +74,7 @@ in {
git.subprocess = true; git.subprocess = true;
git.fetch = [ "origin" "upstream" "rad" ]; git.fetch = [ "origin" "upstream" "rad" ];
git.push = "origin"; # TODO: Find a way to make this become rad when origin is up to date. git.push = "origin";
signing.backend = "ssh"; signing.backend = "ssh";
signing.behavior = "own"; signing.behavior = "own";

View file

@ -2,7 +2,7 @@
def --wrapped sync [...arguments] { def --wrapped sync [...arguments] {
(rsync (rsync
--rsh "ssh -q" --rsh "ssh"
--compress --compress
--delete --recursive --force --delete --recursive --force
--delete-excluded --delete-excluded
@ -22,14 +22,14 @@ def main --wrapped [
} }
if $host != (hostname) { if $host != (hostname) {
ssh -q -tt $host $" ssh -tt $host $"
rm -rf ncc rm -rf ncc
" "
git ls-files git ls-files
| sync --files-from - ./ ($host + ":ncc") | sync --files-from - ./ ($host + ":ncc")
ssh -q -tt $host $" ssh -tt $host $"
cd ncc cd ncc
./rebuild.nu ($host) ($arguments | str join ' ') ./rebuild.nu ($host) ($arguments | str join ' ')
" "