Skip to content

daniel-barlow/nix-local

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Local config and packages for Nix

Comprising

  • My preferred packages for day-to-day operation on Linux (NixOS) and Darwin (vanilla nixpkgs installation)

  • Some derivations that aren't part of my user profile but that I use a lot anyway

Quick start (clobbers any previously installed packages in the profile)

$ cd $HOME
$ git clone [email protected]:telent/nix-local .nixpkgs
$ nix-env -r -iA nixpkgs.desktop

Background

I don't want to maintain a local fork of the nixpkgs repo with my personal packages, at least unless and until I think it's worth trying to get them merged.

Instead I use packageOverrides. packageOverrides is (as far as I can work out) a function that should accept a set of packages and return another set of packages: nixpkgs calls it with the set of all available packages and merges whatever it returns onto the same set.

There is a config.nix file in this repo. If you already have a $HOME/.nixpkgs/config.nix then merge the contents of this one with that one. If not, you can tell Nix to use this one by setting $NIXPKGS_CONFIG to point to it, or (may be easier) by creating a symlink from $HOME/.nixpkgs to this repo.

Package notes

Vault

I started by running

`nix-build '<nixpkgs>' -A npm2nix`/bin/npm2nix package.json node-packages.generated.nix

but the generated default.nix seems to need significant manual editing:

  • first it gave me Assertion failed: (!s.empty()), function showId, file src/libexpr/nixexpr.cc, line 33. which seemed to be related to the definition of tarball. I replaced this with fetchFromGitHub

  • the deps definition in the gnerated expression produced errors about unknown attributes, so I replaced that line with

deps = (filter (v: nixType v == "derivation") (attrValues nodePackages))

Blackbox

Blackbox currently requires that GnuPG is on the search path and can be invoked as gpg. This is a packaging failure which I will fix as soon as I figure out how to.

About

local packages for nix/nixos

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Nix 100.0%