Skip to content

Example of using nix for managing personal user environment packages

Notifications You must be signed in to change notification settings

rencire/nix-home-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nix-home-config

Example of using nix for managing user environment packages

Uses:

Usage

Adding a package

To quickly use this, add a package to common.nix:

with import ./nix {};
[
  cowsay
]

Now install packages:

nix-env -i -f default.nix --remove-all

Now packages should be available in shell:

$ fortune
The only way to amuse some people is to slip and fall on an icy pavement.

Specifying config for each package

This depends on how each package reads their configuration.

e.g. for neovim, we can simply specify the configuration via override. See common.nix.

Folder structure

External Resources

Alternatives

  • Home Manager (personally haven't used it). However, it seems like a heavyweight solution versus just specifying the config for each package individually.

TODO

  • [] add common patterns for importing (e.g. nur, directly from repo from niv, from package repos similar to pypi npm etc.)

About

Example of using nix for managing personal user environment packages

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages