Skip to content

Instantly share code, notes, and snippets.

View Profpatsch's full-sized avatar
🌮

Profpatsch

🌮
View GitHub Profile
@Profpatsch
Profpatsch / all-packages.nix
Last active December 13, 2015 00:24
QT packaging
cutegram =
let f = ../applications/networking/instant-messengers/telegram;
cp = qt5Libs.callPackage;
# templorary all three packages in attrset, for bettor debugging
# in cp "${f}/cutegram" rec {
in rec {
cutegram = cp "${f}/cutegram" {inherit libqtelegram-aseman-edition telegram-qml;};
libqtelegram-aseman-edition = cp "${f}/libqtelegram-aseman-edition" { };
telegram-qml = cp "${f}/telegram-qml" { inherit libqtelegram-aseman-edition; };
};

General

Search paths & namepaces

NIX_PATH only of the form: nixpkgs=https://nixos.org…:mypkgs=/home/bar/nixpkgs

then: nix install nixpkgs.pkgs.hello

and nix install mypkgs.pkgs.hello

Keybase proof

I hereby claim:

  • I am Profpatsch on github.
  • I am profpatsch (https://keybase.io/profpatsch) on keybase.
  • I have a public key whose fingerprint is 4ACF D759 2710 266E 18CE BB28 C5CF D08B 2224 7CDF

To claim this, I am signing this object:

diff --git a/pkgs/applications/office/libreoffice/default.nix b/pkgs/applications/office/libreoffice/default.nix
index 1a5cf98..4bf65d2 100644
--- a/pkgs/applications/office/libreoffice/default.nix
+++ b/pkgs/applications/office/libreoffice/default.nix
@@ -15,10 +15,12 @@
, defaultIconTheme, glib
, langs ? [ "en-US" "en-GB" "ca" "ru" "eo" "fr" "nl" "de" "sl" "pl" ]
, withHelp ? true
+, kdeIntegration ? true
}:
{ inherit (import <nixpkgs> {}) libreoffice; }
modified pkgs/build-support/release/debian-build.nix
@@ -54,11 +54,15 @@ vmTools.runInLinuxImage (stdenv.mkDerivation (
eval "$preInstall"
export LOGNAME=root
+ # otherwise build hangs when it wants to display
+ # the log file
+ export PAGER=cat
${checkinstall}/sbin/checkinstall --nodoc -y -D \
--fstrans=${if fsTranslation then "yes" else "no"} \
@Profpatsch
Profpatsch / summary.org
Last active October 19, 2023 11:53
Summary of the Talk “Literate DevOps With Emacs”
@Profpatsch
Profpatsch / nginx-acme.nix
Last active May 27, 2016 12:04
nginx & acme bootstrapping nixos/modules/security/nginx-acme.nix
{ lib, config, ... }:
with lib;
{
config = mkIf (config.services.nginx.enable && config.services.acme.enable) {
system.activationScripts.acme-nginx = ''
echo I AM WORKING
'';
};
{ pkgs, config, lib, ... }:
let
isso = rec {
port = "8081";
website = pkgs.runCommand "isso-test-html" {} ''
mkdir -p $out
echo '
<p>test1232</p>
<script data-isso="/isso"
@Profpatsch
Profpatsch / mopidy-setup.org
Last active June 8, 2016 17:46
WIP mopidy conf

Setting up mopidy for debian jessie

We wanted to get mopidy running with a web interface, a music database streamed via NFS, pulseaudio and an mpd server.

setup