mirror of
https://github.com/sadan4/dotfiles.git
synced 2025-06-15 08:53:03 -04:00
164 current 2024-06-05 10:41:29 24.11.20240529.ad57eef 6.9.2-zen1 *
This commit is contained in:
parent
be1f3f0b91
commit
8bbdb16908
3 changed files with 14 additions and 8 deletions
|
@ -1,6 +1,7 @@
|
||||||
{ config, lib, pkgs, inputs, ... }:
|
{ config, lib, pkgs, inputs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
flameshot = import ../../common/programs/flameshot.nix {inherit config;};
|
||||||
_s1 = import ../../common/sops.nix { inherit config; };
|
_s1 = import ../../common/sops.nix { inherit config; };
|
||||||
files = import ../../common/files.nix { inherit config; };
|
files = import ../../common/files.nix { inherit config; };
|
||||||
shell = import ../../common/shell.nix { inherit config pkgs; };
|
shell = import ../../common/shell.nix { inherit config pkgs; };
|
||||||
|
@ -53,13 +54,7 @@ nixpkgs.config.allowInsecurePredicate = (pkg: true);
|
||||||
|
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
flameshot = {
|
inherit flameshot;
|
||||||
enable = true;
|
|
||||||
settings.General.showDesktopNotification = false;
|
|
||||||
settings.General.startupLaunch = false;
|
|
||||||
# settings.Shortcuts.TYPE_IMAGEUPLOADER = "";
|
|
||||||
# settings.Shortcuts.TYPE_COPY = "Return";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
# This value determines the Home Manager release that your configuration is
|
# This value determines the Home Manager release that your configuration is
|
||||||
# compatible with. This helps avoid breakage when a new Home Manager release
|
# compatible with. This helps avoid breakage when a new Home Manager release
|
||||||
|
|
|
@ -127,7 +127,7 @@ in
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
TEMP=$(mktemp)
|
TEMP=$(mktemp)
|
||||||
flameshot gui -s -r > $TEMP
|
flameshot gui -s -r > $TEMP
|
||||||
(tesseract $TEMP - --oem 1 -l eng | copy )|| copy "OCR RETUNRED NON-ZERO"
|
(tesseract $TEMP /dev/null --oem 1 -l eng | copy )|| copy "OCR RETUNRED NON-ZERO"
|
||||||
'')
|
'')
|
||||||
];
|
];
|
||||||
wsl = with pkgs;[
|
wsl = with pkgs;[
|
||||||
|
|
11
common/programs/flameshot.nix
Normal file
11
common/programs/flameshot.nix
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{config}: {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
General = {
|
||||||
|
savePath="/home/${config.home.username}/ss/";
|
||||||
|
saveAsFileExtension=".png";
|
||||||
|
showDesktopNotification=false;
|
||||||
|
startupLaunch=true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue