Skip to content

Instantly share code, notes, and snippets.

View mnajib's full-sized avatar

Muhammad Najib Bin Ibrahim mnajib

View GitHub Profile
@pinealan
pinealan / nix-env-diff.bash
Last active September 12, 2023 12:04
Diff installed packages between nix generations
#!/usr/bin/env bash
# From https://github.com/pinealan/dotfiles
nix-list() {
nix-env --list-generations
}
get_current_gen() {
if [ -z $1 ] ; then
# default to current generation of nix-env
@ingenieroariel
ingenieroariel / configuration.nix
Created May 2, 2019 13:15
HP Envy x360 + Nixos + Sway + i3statusbar-rs in a single file with 500 lines.
{ config, lib, pkgs, ... }:
let
domain = "puerti.co";
waylandOverlay = (import (builtins.fetchTarball ({
url = "https://github.com/piensa/wayner/archive/1e62268.tar.gz";
sha256 = "07hzhdc9ic3sk4ivd0g3lx2f7jnr3wkrrr884hf5b1n7adzglh50";
})));
@joedicastro
joedicastro / configuration.nix
Last active January 22, 2022 20:25
My NixOS configuration
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
## DISK CONFIGURATION
imports =
@fikr4n
fikr4n / usr_share_X11_xkb_rules_evdev.xml
Last active March 31, 2021 04:24
Arab Melayu / Jawi alphabet keyboard layout for X11/xkb
<!-- Modify /usr/share/X11/xkb/rules/evdev.xml by adding this in <layoutList> -->
<layoutList>
...
<layout>
<configItem>
<name>id</name>
<shortDescription>id</shortDescription>
<description>Indonesian (Arab Melayu, phonetic)</description>
<languageList>
<iso639Id>ind</iso639Id>
@liangzan
liangzan / .Xresources
Created January 19, 2012 23:26
Xresources for configuring urxvt
! urxvt
URxvt*buffered: true
URxvt*cursorBlink: true
URxvt*underlineColor: yellow
URxvt*font: xft:inconsolata:size=10:antialias=true
URxvt*depth: 32
URxvt*borderless: 1
URxvt*scrollBar: false
URxvt*loginShell: true
Urxvt*secondaryScroll: true # Enable Shift-PageUp/Down in screen