Skip to content

Instantly share code, notes, and snippets.

View rycee's full-sized avatar

Robert Helgesson rycee

View GitHub Profile
@rycee
rycee / hs_err_pid7864.log
Created April 30, 2016 17:08
Java segfault when running JOSM
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x0000000000000000, pid=7864, tid=140461302941440
#
# JRE version: OpenJDK Runtime Environment (8.0_76) (build 1.8.0_76-00)
# Java VM: OpenJDK 64-Bit Server VM (25.76-b00 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C 0x0000000000000000
#

Keybase proof

I hereby claim:

  • I am rycee on github.
  • I am rycee (https://keybase.io/rycee) on keybase.
  • I have a public key whose fingerprint is 36CA CF52 D098 CC0E 78FB 0CB1 3573 356C 25C4 24D4

To claim this, I am signing this object:

@rycee
rycee / home-configuration.nix.5
Last active March 8, 2024 18:30
home-configuration.nix(5)
CONFIGURATION.NIX(5) NixOS Reference Pages CONFIGURATION.NIX(5)
NAME
configuration.nix - NixOS system configuration specification
DESCRIPTION
The file /etc/nixos/configuration.nix contains the declarative
specification of your NixOS system configuration. The command
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.programs.openssh;
keyPairType = types.submodule (
{ name, config, ... }: {
diff --git a/modules/home-environment.nix b/modules/home-environment.nix
index 212e1c6..4f52b5a 100644
--- a/modules/home-environment.nix
+++ b/modules/home-environment.nix
@@ -92,6 +92,8 @@ let
homeFilePattern = "-home-manager-files/";
+ safeBaseNameOf = f: replaceStrings [ " " ] [ "_" ] (baseNameOf f);
+
{ config, pkgs, lib, ... }:
let
secrets = import ./secrets.nix;
in
{
home.packages = [
{ pkgs ? import <nixpkgs> {} }:
let
stdenv = pkgs.stdenv;
deps = with pkgs; [
zlib.out
xlibs.libSM.out
# More packages go here...
{
# …
services.dunst = {
enable = true;
settings = {
global = {
browser = "${config.programs.firefox.package}/bin/firefox -new-tab";
dmenu = "${pkgs.rofi}/bin/rofi -dmenu";
follow = "mouse";
{ config, lib, ... }:
with lib;
let
cfg = config.services.nixBinaryCacheCache;
nginxCfg = config.services.nginx;
{
# …
services.xserver = {
enable = true;
layout = "us";
displayManager.lightdm.enable = true;
displayManager.job.logToJournal = false;
# displayManager.job.logToFile = lib.mkForce false;
monitorSection = ''