Skip to content

Instantly share code, notes, and snippets.

@chrisvest
chrisvest / configuration.nix
Created June 30, 2018 08:52
NixOS configuration for Lenovo P52s laptop
# 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, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
@ladinu
ladinu / encryptedNixos.md
Last active March 1, 2024 07:19
NixOS install with encrypted /boot /root with single password unlock

Requirements

  1. Encrypt everthing including /boot and /root
  2. Enter password once
  3. Support UEFI

Installation media setup

Download NixOS minimal iso and copy to USB stick. For example on Mac OSX

$ diskutil list
$ diskutil unmountDisk /dev/disk1 # Make sure you got right device
@mbakke
mbakke / config.scm
Last active April 26, 2024 23:26
GuixSD with custom kernel
(define-module (my packages)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (gnu packages linux)
#:use-module (guix build-system trivial)
#:use-module (gnu)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix packages))
(define (linux-nonfree-urls version)
@matklad
matklad / idea.nix
Last active February 10, 2023 17:58
Using JetBrains JDK with Intellij IDEA on nixos
# Put this file into `~/.config/nixpkgs/overlays/idea.nix`.
# Then, install IDEA with `nix-env -iA nixos.idea-community`.
self: super:
{
jbsdk = super.callPackage ~/config/nix/jbsdk.nix {}; # you might need to override this path.
idea-community = let
version = "2017.2.3";
@LnL7
LnL7 / shell.nix
Created April 26, 2017 10:00
nix-shell expression with custom python packages
{ pkgs ? import <nixpkgs> {} }:
let
inherit (pkgs) stdenv;
pythonPackages = stdenv.lib.fix' (self: with self; pkgs.python2Packages //
{
atari-py = buildPythonPackage rec {
name = "atari-py-${version}";
version = "0.0.21";
@pascalpoitras
pascalpoitras / config.md
Last active June 23, 2024 15:33
My WeeChat configuration

WeeChat Screenshot

Mouse


enable


@chesster
chesster / tconky.py
Created December 30, 2013 15:36
TaskWarrior for Conky
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from taskw import TaskWarrior
import os.path, time
class TConky (object):
NONE = "--- \n"
CONKY_HEADER = """