mirror of
https://github.com/kmein/niveum
synced 2026-03-18 02:51:08 +01:00
feat: get flameshot-once working
This commit is contained in:
@@ -32,6 +32,7 @@ in
|
||||
./nano.nix
|
||||
./neovim.nix
|
||||
./newsboat.nix
|
||||
./flameshot-once.nix
|
||||
./nixpkgs-unstable.nix
|
||||
./packages
|
||||
./printing.nix
|
||||
|
||||
37
configs/flameshot-once.nix
Normal file
37
configs/flameshot-once.nix
Normal file
@@ -0,0 +1,37 @@
|
||||
{ lib, pkgs, ... }:
|
||||
let
|
||||
overrides = self: super: {
|
||||
flameshot-once = self.callPackage <stockholm/krebs/5pkgs/haskell/flameshot-once.nix> {};
|
||||
blessings = self.callPackage <stockholm/krebs/5pkgs/haskell/blessings.nix> {};
|
||||
};
|
||||
flameshot-once = pkgs.callPackage <stockholm/krebs/5pkgs/simple/flameshot-once> {};
|
||||
in
|
||||
{
|
||||
nixpkgs.overlays = [
|
||||
(import <stockholm/submodules/nix-writers/pkgs>)
|
||||
(import <stockholm/krebs/5pkgs/override>)
|
||||
(self: super: {
|
||||
haskell = super.haskell // {
|
||||
packages = lib.mapAttrs (name: value:
|
||||
if lib.hasAttr "override" value
|
||||
then value.override { inherit overrides; }
|
||||
else value
|
||||
) super.haskell.packages;
|
||||
};
|
||||
haskellPackages = super.haskellPackages.override {
|
||||
inherit overrides;
|
||||
};
|
||||
xwaitforwindow = super.callPackage <stockholm/krebs/5pkgs/simple/xwaitforwindow.nix> {};
|
||||
})
|
||||
];
|
||||
|
||||
environment.systemPackages = [
|
||||
(flameshot-once.override {
|
||||
config.imgur.enable = true;
|
||||
config.imgur.createUrl = "http://p.r/image";
|
||||
config.imgur.deleteUrl = "http://p.r/image/delete/%1";
|
||||
config.imgur.xdg-open.browser = "x-www-browser";
|
||||
config.timeout = 200;
|
||||
})
|
||||
];
|
||||
}
|
||||
@@ -1,9 +1,6 @@
|
||||
{ pkgs, lib, ... }:
|
||||
let
|
||||
scripts = import <niveum/packages/scripts> { inherit pkgs lib; };
|
||||
flameshot-once = pkgs.haskellPackages.callPackage <stockholm/krebs/5pkgs/haskell/flameshot-once.nix> {
|
||||
blessings = pkgs.haskellPackages.callPackage <stockholm/krebs/5pkgs/haskell/blessings.nix> {};
|
||||
};
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
@@ -60,7 +57,6 @@ in
|
||||
ffmpeg
|
||||
imagemagick
|
||||
scrot
|
||||
flameshot-once
|
||||
# ARCHIVE TOOLS
|
||||
unzip
|
||||
unrar
|
||||
|
||||
Reference in New Issue
Block a user