Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block msteen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
msteen / default.nix
Created Mar 22, 2020
NodeJS outside of Nix within NixOS
View default.nix
environment.systemPackages = with pkgs; [ nodejs-12_x ];
environment.shellInit = ''
# Workaround for not being able to install packages globally.
export PATH="/opt/npm/bin:$PATH"
View grub-secrets.nix
{ config, lib, ... }:
with lib;
# Add support for Grub secrets
config = mkIf (config.boot.loader.grub.enable && config.boot.initrd.secrets != {}) {
boot.loader = {
supportsInitrdSecrets = mkForce true;
grub.extraInitrd = "/boot/grub/secrets-initrd.gz";
You can’t perform that action at this time.