Switch to tridactyl
This commit is contained in:
parent
99248a56c2
commit
b7b56fdb98
19
flake.lock
19
flake.lock
@ -1022,7 +1022,8 @@
|
||||
"rycee": "rycee",
|
||||
"simple-nixos-mailserver": "simple-nixos-mailserver",
|
||||
"simple-osd-daemons": "simple-osd-daemons",
|
||||
"sonoff-lan": "sonoff-lan"
|
||||
"sonoff-lan": "sonoff-lan",
|
||||
"tridactyl-native-messenger": "tridactyl-native-messenger"
|
||||
}
|
||||
},
|
||||
"rust-overlay": {
|
||||
@ -1150,6 +1151,22 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"tridactyl-native-messenger": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1663952229,
|
||||
"narHash": "sha256-YGDVcfFcI9cRCCZ4BrO5xTuI9mrGq1lfbEITB7o3vQQ=",
|
||||
"owner": "tridactyl",
|
||||
"repo": "native_messenger",
|
||||
"rev": "62f19dba573b924703829847feb1bfee68885514",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "tridactyl",
|
||||
"repo": "native_messenger",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"utils": {
|
||||
"locked": {
|
||||
"lastModified": 1667395993,
|
||||
|
10
flake.nix
10
flake.nix
@ -99,6 +99,12 @@
|
||||
remapper.url = "github:balsoft/remapper";
|
||||
|
||||
helix.url = "github:helix-editor/helix";
|
||||
|
||||
tridactyl-native-messenger = {
|
||||
url = "github:tridactyl/native_messenger";
|
||||
flake = false;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
outputs = { nixpkgs, self, nix, deploy-rs, ... }@inputs:
|
||||
@ -119,9 +125,7 @@
|
||||
import inputs.nixpkgs {
|
||||
overlays = [ self.overlay ];
|
||||
localSystem = { inherit system; };
|
||||
config = {
|
||||
android_sdk.accept_license = true;
|
||||
};
|
||||
config = { android_sdk.accept_license = true; };
|
||||
};
|
||||
in {
|
||||
nixosModules = builtins.listToAttrs (findModules ./modules);
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
{ config, pkgs, lib, inputs, ... }:
|
||||
let
|
||||
thm = pkgs.my-lib.thmHash config.themes.colors;
|
||||
fonts = config.themes.fonts;
|
||||
@ -42,6 +42,31 @@ in {
|
||||
];
|
||||
};
|
||||
|
||||
home.file.".mozilla/native-messaging-hosts/tridactyl.json".text = let
|
||||
tridactyl = with pkgs.nimPackages; buildNimPackage {
|
||||
pname = "tridactyl_native";
|
||||
version = "dev";
|
||||
nimBinOnly = true;
|
||||
src = inputs.tridactyl-native-messenger;
|
||||
buildInputs = [ tempfile ];
|
||||
};
|
||||
in builtins.toJSON {
|
||||
name = "tridactyl";
|
||||
description = "Tridactyl native command handler";
|
||||
path = "${tridactyl}/bin/native_main";
|
||||
type = "stdio";
|
||||
|
||||
allowed_extensions = [
|
||||
"tridactyl.vim@cmcaine.co.uk"
|
||||
"tridactyl.vim.betas@cmcaine.co.uk"
|
||||
"tridactyl.vim.betas.nonewtab@cmcaine.co.uk"
|
||||
];
|
||||
};
|
||||
|
||||
xdg.configFile."tridactyl/tridactylrc".text = ''
|
||||
js tri.config.set("editorcmd", "alacritty -e hx")
|
||||
'';
|
||||
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
package = pkgs.firefox-wayland;
|
||||
@ -115,7 +140,7 @@ in {
|
||||
adsum-notabs
|
||||
ublock-origin
|
||||
browserpass
|
||||
vimium-c
|
||||
tridactyl
|
||||
];
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user