Skip to content

Instantly share code, notes, and snippets.

@peti
peti / .gitignore
Last active Feb 7, 2020
Experiment with bazel
View .gitignore
# ignore generated files
/bazel-bazel-test
/bazel-bin
/bazel-out
/bazel-testlogs
/WORKSPACE
@peti
peti / .gitignore
Last active Aug 19, 2019
OBS Presentation
View .gitignore
/obs-presentation.pdf
@peti
peti / keybase.md
Created Mar 1, 2019
Proof of identity
View keybase.md

Keybase proof

I hereby claim:

  • I am peti on github.
  • I am psimons (https://keybase.io/psimons) on keybase.
  • I have a public key ASCg32DOlimevMJDbtN_hf2CvQNhfdU0krJOyqbtvK67_wo

To claim this, I am signing this object:

@peti
peti / README.md
Created Oct 21, 2018
How to show an hledger transaction
View README.md
showTransaction:

2018/10/19 Joe Doe | Test
    Account 1         €388.00 = €2913.00
    Account 2
    Account 3

showTransactionUnelided:
@peti
peti / disable-gdm-auto-suspend.nix
Created Oct 2, 2018
Disable GDM's auto-suspension of the machine when no user is logged in
View disable-gdm-auto-suspend.nix
{ config, pkgs, lib, ... }: # disable-gdm-auto-suspend.nix
{
assertions = [
{ assertion = config.services.xserver.displayManager.gdm.enable;
message = "dont't include disable-gdm-auto-suspend.nix unless GDM is enabled";
}
];
programs.dconf.enable = true;
@peti
peti / README.md
Last active Mar 16, 2021
Make NixOS provide version-specific LOCALE_ARCHIVE environment variables
View README.md

This NixOS code ensures that the system provide version-specific $LOCALE_ARCHIVE environment variables to mitigate the effects of https://github.com/NixOS/nixpkgs/issues/38991.

To deploy it, copy the file into your /etc/nixos folder using a file name like multi-glibc-locale-paths.nix. Then edit your configuration.nix file to contain the attribute:

imports = [ ./multi-glibc-locale-paths.nix ];
@peti
peti / .gitignore
Last active Mar 9, 2018
cabal new-build is confused by "tests: True" in global config file
View .gitignore
/.*.environment.*
/dist-newstyle/*
@peti
peti / nix.maude
Last active Nov 2, 2017
Model the //> operator from https://github.com/NixOS/rfcs/pull/3 in Maude
View nix.maude
***(
nix.maude -- experiment with the recursive update operator
The language extension was suggested in https://github.com/NixOS/rfcs/pull/3.
This code lives at https://gist.github.com/peti/7a2318dcbba9946862423aea0380859b.
To evaluate the examples given at the bottom of this code, run the command:
nix-shell -p maude --run "maude -no-banner -batch <nix.maude"
***)