From 247db71f2db37501fb6b57ac16d3fd5d188d163b Mon Sep 17 00:00:00 2001 From: moons Date: Tue, 4 Aug 2026 16:04:44 +0900 Subject: [PATCH] nani --- flake.lock | 87 +++++++++++++++------ flake.nix | 3 + modules/applications/nani/darwin.nix | 6 ++ modules/applications/nani/home/nixos.nix | 5 ++ modules/applications/nani/meta.nix | 8 ++ modules/profiles/workload/personal/meta.nix | 1 + 6 files changed, 84 insertions(+), 26 deletions(-) create mode 100644 modules/applications/nani/darwin.nix create mode 100644 modules/applications/nani/home/nixos.nix create mode 100644 modules/applications/nani/meta.nix diff --git a/flake.lock b/flake.lock index 380c825..2d7e38b 100644 --- a/flake.lock +++ b/flake.lock @@ -658,11 +658,29 @@ "type": "github" } }, + "nani-translate-linux": { + "inputs": { + "nixpkgs": "nixpkgs_5" + }, + "locked": { + "lastModified": 1785586565, + "narHash": "sha256-906PnTa5W8qZTjFMHpbtB0Eog+tWQJFCSGx6/2q+Jhs=", + "ref": "refs/heads/main", + "rev": "82f29f0bd21c86c7654ed0ca06c1af10f3b6b0b0", + "revCount": 2, + "type": "git", + "url": "https://git.yutakobayashi.com/yuta/nani-translate-linux" + }, + "original": { + "type": "git", + "url": "https://git.yutakobayashi.com/yuta/nani-translate-linux" + } + }, "niri-flake": { "inputs": { "niri-stable": "niri-stable", "niri-unstable": "niri-unstable", - "nixpkgs": "nixpkgs_5", + "nixpkgs": "nixpkgs_6", "nixpkgs-stable": "nixpkgs-stable", "xwayland-satellite-stable": "xwayland-satellite-stable", "xwayland-satellite-unstable": "xwayland-satellite-unstable" @@ -778,7 +796,7 @@ }, "nixos-hardware": { "inputs": { - "nixpkgs": "nixpkgs_6" + "nixpkgs": "nixpkgs_7" }, "locked": { "lastModified": 1785232496, @@ -798,7 +816,7 @@ "nixos-wsl": { "inputs": { "flake-compat": "flake-compat_4", - "nixpkgs": "nixpkgs_7" + "nixpkgs": "nixpkgs_8" }, "locked": { "lastModified": 1784642409, @@ -909,6 +927,19 @@ } }, "nixpkgs_10": { + "locked": { + "lastModified": 1785571196, + "narHash": "sha256-xwSqxTsama0YTtS78+4YyCm6jJg09v78QWfP1cAyoVA=", + "rev": "148bab9c1c3c53136ecb44a6ea356a0ed5b39b06", + "type": "tarball", + "url": "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1045728.148bab9c1c3c/nixexprs.tar.xz" + }, + "original": { + "type": "tarball", + "url": "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz" + } + }, + "nixpkgs_11": { "locked": { "lastModified": 1770107345, "narHash": "sha256-tbS0Ebx2PiA1FRW8mt8oejR0qMXmziJmPaU1d4kYY9g=", @@ -924,7 +955,7 @@ "type": "github" } }, - "nixpkgs_11": { + "nixpkgs_12": { "locked": { "lastModified": 1772542754, "narHash": "sha256-WGV2hy+VIeQsYXpsLjdr4GvHv5eECMISX1zKLTedhdg=", @@ -940,7 +971,7 @@ "type": "github" } }, - "nixpkgs_12": { + "nixpkgs_13": { "locked": { "lastModified": 1778869304, "narHash": "sha256-30sZNZoA1cqF5JNO9fVX+wgiQYjB7HJqqJ4ztCDeBZE=", @@ -1002,6 +1033,22 @@ } }, "nixpkgs_5": { + "locked": { + "lastModified": 1785454630, + "narHash": "sha256-LQy14TZp77TwbQf40gg1V3jo8FwJG0jGDkAH+zRHqg8=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "1559d3daa3ecc813a650b79375ea61b6741b8746", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_6": { "locked": { "lastModified": 1785692966, "narHash": "sha256-vUfIeBEfpbAfZ5zjgIkYk7eHBeVfCYVjLbWnMkseYnk=", @@ -1017,7 +1064,7 @@ "type": "github" } }, - "nixpkgs_6": { + "nixpkgs_7": { "locked": { "lastModified": 1767892417, "narHash": "sha256-8bW3q88CEg2u4hSP66Vf4lpbLonHz7hqDNBMcCY7E9U=", @@ -1030,7 +1077,7 @@ "url": "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz" } }, - "nixpkgs_7": { + "nixpkgs_8": { "locked": { "lastModified": 1783776592, "narHash": "sha256-UgCQzxeWI75XM8G+hPrPh+MKzEPjG3SpAj7dtqSbksA=", @@ -1046,7 +1093,7 @@ "type": "github" } }, - "nixpkgs_8": { + "nixpkgs_9": { "locked": { "lastModified": 1785599192, "narHash": "sha256-dg4RTtDxnXY13UkJNdhmgTUTl0n/IJBlCigfO7nutZw=", @@ -1062,19 +1109,6 @@ "type": "github" } }, - "nixpkgs_9": { - "locked": { - "lastModified": 1785571196, - "narHash": "sha256-xwSqxTsama0YTtS78+4YyCm6jJg09v78QWfP1cAyoVA=", - "rev": "148bab9c1c3c53136ecb44a6ea356a0ed5b39b06", - "type": "tarball", - "url": "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1045728.148bab9c1c3c/nixexprs.tar.xz" - }, - "original": { - "type": "tarball", - "url": "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz" - } - }, "nixvim": { "inputs": { "flake-parts": "flake-parts_4", @@ -1100,7 +1134,7 @@ }, "noctalia": { "inputs": { - "nixpkgs": "nixpkgs_9" + "nixpkgs": "nixpkgs_10" }, "locked": { "lastModified": 1785767538, @@ -1176,13 +1210,14 @@ "home-manager": "home-manager_2", "lanzaboote": "lanzaboote", "llm-agents": "llm-agents", + "nani-translate-linux": "nani-translate-linux", "niri-flake": "niri-flake", "nix-darwin": "nix-darwin", "nix-hazkey": "nix-hazkey", "nix-index-database": "nix-index-database", "nixos-hardware": "nixos-hardware", "nixos-wsl": "nixos-wsl", - "nixpkgs": "nixpkgs_8", + "nixpkgs": "nixpkgs_9", "nixpkgs-unstable": "nixpkgs-unstable", "nixvim": "nixvim", "noctalia": "noctalia", @@ -1253,7 +1288,7 @@ }, "soulver-cpp": { "inputs": { - "nixpkgs": "nixpkgs_12", + "nixpkgs": "nixpkgs_13", "nixpkgs-libxml2": "nixpkgs-libxml2" }, "locked": { @@ -1564,7 +1599,7 @@ }, "treefmt-nix_3": { "inputs": { - "nixpkgs": "nixpkgs_10" + "nixpkgs": "nixpkgs_11" }, "locked": { "lastModified": 1785360170, @@ -1582,7 +1617,7 @@ }, "vicinae": { "inputs": { - "nixpkgs": "nixpkgs_11", + "nixpkgs": "nixpkgs_12", "soulver-cpp": "soulver-cpp", "systems": "systems_9" }, diff --git a/flake.nix b/flake.nix index 57160dc..01f3644 100644 --- a/flake.nix +++ b/flake.nix @@ -110,6 +110,9 @@ url = "github:nix-community/browser-previews"; inputs.nixpkgs.follows = "nixpkgs"; }; + + nani-translate-linux.url = "git+https://git.yutakobayashi.com/yuta/nani-translate-linux"; + }; outputs = diff --git a/modules/applications/nani/darwin.nix b/modules/applications/nani/darwin.nix new file mode 100644 index 0000000..648e5a7 --- /dev/null +++ b/modules/applications/nani/darwin.nix @@ -0,0 +1,6 @@ +{ + homebrew = { + enable = true; + casks = [ "nani" ]; + }; +} diff --git a/modules/applications/nani/home/nixos.nix b/modules/applications/nani/home/nixos.nix new file mode 100644 index 0000000..c5a6e7b --- /dev/null +++ b/modules/applications/nani/home/nixos.nix @@ -0,0 +1,5 @@ +_: { + programs.naniTranslateLinux.enable = true; + + xdg.mimeApps.defaultApplications."x-scheme-handler/naniapp" = "nani.desktop"; +} diff --git a/modules/applications/nani/meta.nix b/modules/applications/nani/meta.nix new file mode 100644 index 0000000..88dc237 --- /dev/null +++ b/modules/applications/nani/meta.nix @@ -0,0 +1,8 @@ +{ inputs, ... }: +{ + description = "Nani Translate application"; + + imports.home = [ + inputs.nani-translate-linux.homeManagerModules.default + ]; +} diff --git a/modules/profiles/workload/personal/meta.nix b/modules/profiles/workload/personal/meta.nix index 069e071..93636f7 100644 --- a/modules/profiles/workload/personal/meta.nix +++ b/modules/profiles/workload/personal/meta.nix @@ -12,5 +12,6 @@ "applications.slack" "applications.zoom" "applications.obs" + "applications.nani" ]; }