Compare commits
No commits in common. "c699350a18203a6c8a8e2e9cdabe82b64d311d0d" and "79538cc993cf8dbdd2da77a155ec505fc76124ac" have entirely different histories.
c699350a18
...
79538cc993
5 changed files with 1 additions and 45 deletions
|
@ -11,7 +11,7 @@
|
||||||
# utils
|
# utils
|
||||||
ffmpeg ripgrep jq libqalculate
|
ffmpeg ripgrep jq libqalculate
|
||||||
# nix
|
# nix
|
||||||
nix-output-monitor nix-prefetch-scripts nix-top
|
nix-output-monitor
|
||||||
# system
|
# system
|
||||||
btop duf lm_sensors ethtool pciutils usbutils powertop killall
|
btop duf lm_sensors ethtool pciutils usbutils powertop killall
|
||||||
# debug
|
# debug
|
||||||
|
@ -78,7 +78,6 @@
|
||||||
# tools
|
# tools
|
||||||
tools.gpg.enable = true;
|
tools.gpg.enable = true;
|
||||||
tools.mpv.enable = true;
|
tools.mpv.enable = true;
|
||||||
tools.rbw.enable = true;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -97,9 +97,6 @@ in {
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
'';
|
'';
|
||||||
grabPasswordScript = pkgs.writeScript "grab-password" ''
|
|
||||||
${lib.getExe pkgs.rbw} get $(${lib.getExe pkgs.gnome.zenity} --entry --text="Enter the name for your password entry to copy it to your clipboard" --title="Password") | ${lib.getExe pkgs.wl-clipboard-x11} -selection clipboard
|
|
||||||
'';
|
|
||||||
in [
|
in [
|
||||||
"$mod, R, exec, ${lib.getExe pkgs.rofi-wayland} -show run"
|
"$mod, R, exec, ${lib.getExe pkgs.rofi-wayland} -show run"
|
||||||
", print, exec, ${screenshotScript}"
|
", print, exec, ${screenshotScript}"
|
||||||
|
@ -124,7 +121,6 @@ in {
|
||||||
"$mod, bracketright, workspace, e+1"
|
"$mod, bracketright, workspace, e+1"
|
||||||
|
|
||||||
", XF86LaunchA, exec, ${screenshotScript}"
|
", XF86LaunchA, exec, ${screenshotScript}"
|
||||||
", XF86LaunchB, exec, ${grabPasswordScript}"
|
|
||||||
] ++ (
|
] ++ (
|
||||||
# workspaces
|
# workspaces
|
||||||
# binds $mod + [shift +] {1..10} to [move to] workspace {1..10}
|
# binds $mod + [shift +] {1..10} to [move to] workspace {1..10}
|
||||||
|
|
|
@ -1,19 +0,0 @@
|
||||||
{ config, lib, pkgs, ... }:
|
|
||||||
|
|
||||||
with lib;
|
|
||||||
let
|
|
||||||
cfg = config.modules.software.tools.rbw;
|
|
||||||
in {
|
|
||||||
options.modules.software.tools.rbw = {
|
|
||||||
enable = mkEnableOption "Enable rbw, a CLI Bitwarden frontend";
|
|
||||||
};
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
hm.programs.rbw = {
|
|
||||||
enable = true;
|
|
||||||
settings.email = "reidlab325@gmail.com";
|
|
||||||
settings.lock_timeout = 60 * 60 * 24 * 7; # 1 week
|
|
||||||
settings.pinentry = pkgs.pinentry-gnome3;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
0
overlays/.gitkeep
Executable file
0
overlays/.gitkeep
Executable file
|
@ -1,20 +0,0 @@
|
||||||
final: prev: {
|
|
||||||
rbw = prev.rbw.overrideAttrs (old: rec {
|
|
||||||
version = "1.11.0";
|
|
||||||
|
|
||||||
src = prev.fetchzip {
|
|
||||||
url = "https://git.tozt.net/rbw/snapshot/rbw-${version}.tar.gz";
|
|
||||||
hash = "sha256-5KZ6mYYJEqsqREhQ/DoEgvPSwagObBCx8SFsiIiWCsI=";
|
|
||||||
};
|
|
||||||
|
|
||||||
# we can't just override `cargoHash`, because of Nix
|
|
||||||
# https://github.com/NixOS/nixpkgs/issues/107070
|
|
||||||
cargoDeps = old.cargoDeps.overrideAttrs (
|
|
||||||
prev.lib.const {
|
|
||||||
name = "${old.pname}-vendor.tar.gz";
|
|
||||||
inherit src;
|
|
||||||
outputHash = "sha256-KlN31eNwywNVqwCl8s9r2RvEYl9/UMR2DR6Ov4ffwoc=";
|
|
||||||
}
|
|
||||||
);
|
|
||||||
});
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue