Compare commits

...

3 commits

Author SHA1 Message Date
Leonardo Eugênio 441e591cb4 sway: assign vesktop to chat workspace 2024-06-29 01:32:59 -03:00
Leonardo Eugênio 30218ca437 gnome: package gnome-pass-search-provider 2024-06-29 01:32:59 -03:00
Leonardo Eugênio 278b12c001 fish: add poweroff alias 2024-06-29 01:32:47 -03:00
8 changed files with 75 additions and 1 deletions

View file

@ -8,4 +8,5 @@
lipsum = pkgs.callPackage ./lipsum.nix { }; lipsum = pkgs.callPackage ./lipsum.nix { };
emmet-cli = pkgs.callPackage ./emmet-cli.nix { }; emmet-cli = pkgs.callPackage ./emmet-cli.nix { };
material-wifi-icons = pkgs.callPackage ./material-wifi-icons.nix { }; material-wifi-icons = pkgs.callPackage ./material-wifi-icons.nix { };
gnome-pass-search-provider = pkgs.callPackage ./gnome-pass-search-provider.nix { };
} }

View file

@ -0,0 +1,64 @@
{
stdenv,
fetchFromGitHub,
python3Packages,
wrapGAppsHook,
gtk3,
gobject-introspection,
gnome,
}:
let
inherit (python3Packages)
dbus-python
pygobject3
fuzzywuzzy
levenshtein
;
in
stdenv.mkDerivation rec {
pname = "gnome-pass-search-provider";
version = "1.4.0";
src = fetchFromGitHub {
owner = "jle64";
repo = "gnome-pass-search-provider";
rev = version;
hash = "sha256-PDR8fbDoT8IkHiTopQp0zd4DQg7JlacA6NdKYKYmrWw=";
};
nativeBuildInputs = [
python3Packages.wrapPython
wrapGAppsHook
];
propagatedBuildInputs = [
dbus-python
pygobject3
fuzzywuzzy
levenshtein
gtk3
gobject-introspection
];
env = {
LIBDIR = builtins.placeholder "out" + "/lib";
DATADIR = builtins.placeholder "out" + "/share";
};
postPatch = ''
substituteInPlace conf/org.gnome.Pass.SearchProvider.service.{dbus,systemd} \
--replace-fail "/usr/lib" "$LIBDIR"
'';
installPhase = ''
bash ./install.sh
'';
postFixup = ''
makeWrapperArgs=( "''${gappsWrapperArgs[@]}" )
wrapPythonProgramsIn "$out/lib" "$out $propagatedBuildInputs"
'';
}

View file

@ -30,6 +30,8 @@
hardware.opentabletdriver.enable = lib.mkForce false; hardware.opentabletdriver.enable = lib.mkForce false;
programs.gpaste.enable = true;
# services.xserver.displayManager.autologin.user = "lelgenio"; # services.xserver.displayManager.autologin.user = "lelgenio";
environment.systemPackages = environment.systemPackages =
with pkgs; with pkgs;
@ -40,5 +42,6 @@
chrome-gnome-shell chrome-gnome-shell
gnomeExtensions.quick-settings-audio-devices-hider gnomeExtensions.quick-settings-audio-devices-hider
gnome-pass-search-provider
]; ];
} }

View file

@ -36,6 +36,7 @@ in
shellAliases = { shellAliases = {
rm = "trash"; rm = "trash";
tree = "eza -T"; tree = "eza -T";
kys = "shutdown now";
}; };
shellAbbrs = { shellAbbrs = {
off = "shutdown now"; off = "shutdown now";

View file

@ -49,6 +49,8 @@ lib.mkIf (config.my.desktop == "gnome") {
QT_QPA_PLATFORMTHEME = "qt5ct"; QT_QPA_PLATFORMTHEME = "qt5ct";
}; };
services.gpg-agent.pinentryPackage = pkgs.pinentry-gnome3;
xdg.defaultApplications = { xdg.defaultApplications = {
enable = lib.mkForce false; enable = lib.mkForce false;
}; };

View file

@ -10,7 +10,6 @@
enable = true; enable = true;
defaultCacheTtl = 604800; defaultCacheTtl = 604800;
maxCacheTtl = 604800; maxCacheTtl = 604800;
pinentryPackage = pkgs.pinentry-curses;
extraConfig = '' extraConfig = ''
allow-preset-passphrase allow-preset-passphrase
''; '';

View file

@ -131,6 +131,8 @@ in
}; };
}; };
services.gpg-agent.pinentryPackage = pkgs.pinentry-all;
xdg.configFile."OpenTabletDriver/settings.json".source = ./open-tablet-driver.json; xdg.configFile."OpenTabletDriver/settings.json".source = ./open-tablet-driver.json;
home.packages = with pkgs; [ home.packages = with pkgs; [

View file

@ -44,6 +44,8 @@ in
{ title = "Discord"; } { title = "Discord"; }
{ class = "WebCord"; } { class = "WebCord"; }
{ app_id = "WebCord"; } { app_id = "WebCord"; }
{ class = "vesktop"; }
{ app_id = "vesktop"; }
{ class = "Element"; } { class = "Element"; }
{ app_id = "Element"; } { app_id = "Element"; }
]; ];