My own nixpkgs (for nix + home-manager). Used for nix on my current Ubuntu Setup. Lives inside ~/.config/nixpkgs
Go to file
Daniel Siepmann 749785f9f4
Replace my-packages with home-manager
Move all packages to home.nix and remove `my-packages` derivate.
Also define dunst service and remove readme entry related to
configuration and services. Those are now maintained via home-manager.

The "update" section in readme got updated to reflect new home-manager.
2022-02-02 17:21:27 +01:00
overlays Replace my-packages with home-manager 2022-02-02 17:21:27 +01:00
home.nix Replace my-packages with home-manager 2022-02-02 17:21:27 +01:00
readme.rst Replace my-packages with home-manager 2022-02-02 17:21:27 +01:00

nixpkgs

I currently use Ubuntu and installed nix alongside. This repository contains my personal ~/.config/nixpkgs folder, for sharing, inspiration and retrieving feedback.

This includes home.nix to maintain home-manager, see: https://nix-community.github.io/home-manager/index.html

Table of Contents

Disclaimer

This is my personal setup for my local laptop running Ubuntu. I share this for free so everyone can have a look and inspiration or provide feedback to me.

This is not intended to be used by anyone else just by copy and pasting or cloning.

Installation

Install (clone) into ~/.config/nixpkgs.

Install home-manager see: https://nix-community.github.io/home-manager/index.html Execute home-manager switch

Usage

Add packages to home.nix and run home-manager switch.

Update

The following will update the whole system and clean things up:

nix-channel --update \
  && nix-env -ia nixpkgs.nix nixpkgs.cacert \
  && home-manager switch \
  && home-manager expire-generations '-30 days' \
  && nix-env --delete-generations +5 \
  && nix-store --gc

This will update the channel (fetch state of nixpkgs). It then will update nix itself. Then upgrade all installed derivations (packages). Delete old generations, except last 5. And run garbage collection.