fix micro
This commit is contained in:
parent
0c8ff82772
commit
8b67ff20b2
2
base.nix
2
base.nix
|
@ -11,6 +11,8 @@
|
||||||
(ifExists ./hardware-configuration.nix )
|
(ifExists ./hardware-configuration.nix )
|
||||||
];
|
];
|
||||||
|
|
||||||
|
nixpkgs.overlays = [ (import ./overlay.nix) ];
|
||||||
|
|
||||||
nixpkgs.config.permittedInsecurePackages = [
|
nixpkgs.config.permittedInsecurePackages = [
|
||||||
pkgs.pulsar.name
|
pkgs.pulsar.name
|
||||||
pkgs.zotero.name
|
pkgs.zotero.name
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
final: prev:
|
||||||
|
|
||||||
|
let
|
||||||
|
inherit (final) lib;
|
||||||
|
in
|
||||||
|
|
||||||
|
rec {
|
||||||
|
|
||||||
|
# https://github.com/bugaevc/wl-clipboard/issues/185
|
||||||
|
wl-clipboard-timeout = prev.symlinkJoin {
|
||||||
|
inherit (prev.wl-clipboard) name;
|
||||||
|
paths = [
|
||||||
|
(prev.writeShellScriptBin "wl-copy" ''
|
||||||
|
timeout 0.3s ${lib.getExe' prev.wl-clipboard "wl-copy"} "$@"
|
||||||
|
'')
|
||||||
|
(prev.writeShellScriptBin "wl-paste" ''
|
||||||
|
timeout 0.3s ${lib.getExe' prev.wl-clipboard "wl-paste"} "$@"
|
||||||
|
'')
|
||||||
|
prev.wl-clipboard
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
micro = prev.micro.override {
|
||||||
|
wl-clipboard = wl-clipboard-timeout;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
|
@ -1,23 +1,5 @@
|
||||||
{ pkgs, lib, ... }:
|
{ pkgs, lib, ... }:
|
||||||
|
|
||||||
let
|
|
||||||
|
|
||||||
# https://github.com/bugaevc/wl-clipboard/issues/185
|
|
||||||
wl-clipboard' = pkgs.symlinkJoin {
|
|
||||||
inherit (pkgs.wl-clipboard) name;
|
|
||||||
paths = [
|
|
||||||
(pkgs.writeShellScriptBin "wl-copy" ''
|
|
||||||
timeout 0.25s ${lib.getExe' pkgs.wl-clipboard "wl-copy"} "$@"
|
|
||||||
'')
|
|
||||||
(pkgs.writeShellScriptBin "wl-paste" ''
|
|
||||||
timeout 0.25s ${lib.getExe' pkgs.wl-clipboard "wl-paste"} "$@"
|
|
||||||
'')
|
|
||||||
pkgs.wl-clipboard
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
in
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
|
@ -38,7 +20,7 @@ in
|
||||||
];
|
];
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
wl-clipboard'
|
wl-clipboard-timeout
|
||||||
|
|
||||||
discord
|
discord
|
||||||
element-desktop
|
element-desktop
|
||||||
|
|
|
@ -1,27 +1,5 @@
|
||||||
{ pkgs, lib, ... }:
|
{ pkgs, lib, ... }:
|
||||||
|
|
||||||
let
|
|
||||||
|
|
||||||
# https://github.com/bugaevc/wl-clipboard/issues/185
|
|
||||||
wl-clipboard' = pkgs.symlinkJoin {
|
|
||||||
inherit (pkgs.wl-clipboard) name;
|
|
||||||
paths = [
|
|
||||||
(pkgs.writeShellScriptBin "wl-copy" ''
|
|
||||||
timeout 0.25s ${lib.getExe' pkgs.wl-clipboard "wl-copy"} "$@"
|
|
||||||
'')
|
|
||||||
(pkgs.writeShellScriptBin "wl-paste" ''
|
|
||||||
timeout 0.25s ${lib.getExe' pkgs.wl-clipboard "wl-paste"} "$@"
|
|
||||||
'')
|
|
||||||
pkgs.wl-clipboard
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
micro' = pkgs.micro.override {
|
|
||||||
wl-clipboard = wl-clipboard';
|
|
||||||
};
|
|
||||||
|
|
||||||
in
|
|
||||||
|
|
||||||
{
|
{
|
||||||
# TODO: upstream this
|
# TODO: upstream this
|
||||||
imports = [ ../modules/micro.nix ];
|
imports = [ ../modules/micro.nix ];
|
||||||
|
@ -32,7 +10,7 @@ in
|
||||||
home.sessionVariables.EDITOR = "micro";
|
home.sessionVariables.EDITOR = "micro";
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
micro'
|
micro
|
||||||
aspell
|
aspell
|
||||||
aspellDicts.en
|
aspellDicts.en
|
||||||
aspellDicts.nb
|
aspellDicts.nb
|
||||||
|
|
Loading…
Reference in New Issue