This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, lib, pkgs, ... }: | |
with lib; | |
let | |
cfg = config.programs.screenshot-ocr; | |
mkOcr = lang: | |
pkgs.writeScriptBin "ocr-${lang}" '' | |
#!/bin/sh | |
set -euo pipefail |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ lib, fetchFromGitHub, stdenv, pcre2, boost, zlib, lzham }: | |
stdenv.mkDerivation rec { | |
pname = "ugrep"; | |
version = "2.4.1"; | |
src = fetchFromGitHub { | |
owner = "Genivia"; | |
repo = pname; | |
rev = "v${version}"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, lib, pkgs, ... }: | |
with lib; | |
let | |
cfg = config.services.espanso; | |
in { | |
options = { | |
services.espanso = { | |
enable = mkOption { | |
type = types.bool; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
""" | |
foreman_organization: This is an ext_pillar for Salt that will go though paths | |
looking for a folder matching the minon's | |
Organization already set in Foreman. | |
By default it will look for a file named 'init.sls' inside the organization's | |
folder but it will also look for any files in the pillar named 'roles' | |
by it's role name. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!py | |
import logging | |
import yaml | |
import sys | |
import os | |
PILLAR_HOST_DIR = "/srv/salt/hosts" | |
log = logging.getLogger(__name__) |