Git Product home page Git Product logo

nixpkgs-1's Introduction

My development environment

Overview

I use the nix package manager on all of my (non-mobile) computers, and it is very helpful.

There are many ways that this setup provides me value, but one of the most legible is this: I have a fairly customized environment (including a few dozen tools, a couple hundred lines of config, and about a dozen custom scripts) that I am able to install and synchronize across multiple machines, including my personal MacBook Pro, my Linux work machine, and a few servers I use for hobby projects.

Usage

  1. Install nix

  2. Upgrade nix to a pre-release version with experimental support for flakes:*

    nix-env -iAf https://github.com/NixOS/nixpkgs/tarball/release-20.03 nixFlakes

  3. Enable experimental features:*

    sudo mkdir -p /etc/nix && echo 'experimental-features = nix-command flakes ca-references' | sudo tee -a /etc/nix/nix.conf

  4. Install my environment:

    nix profile install github:jeremyschlatter/nixpkgs

  5. Run my post-install script:

    jeremy-post-install

*I am using an experimental feature called Nix flakes. These steps are needed to opt into it before it stabilizes.

Composing env definitions

While the bulk of my environment is defined here in this repo, I also have a few pieces defined in private repos. This is useful for managing parts of my environment that either need to be secret or that I just don't want to publish for whatever reason.

I have not yet written instructions for how to compose these definitions. I may do that in the future.

About my environment

This config installs kitty, which I use as my terminal emulator.

It configures kitty to use a custom shell (bash with a custom bashrc). To use my shell config outside kitty, you can run it manually as shell.

Other Notes

To pick up the Fira Code font in Gnome I made this symlink:

ln -s ~/.nix-profile/share/fonts/ ~/.local/share/

To pick up application launchers for kitty and alacritty in Gnome I made this symlink:

rmdir ~/.local/share/applications
ln -s ~/.nix-profile/share/applications/ ~/.local/share/

nixpkgs-1's People

Contributors

jeremyschlatter avatar chkno avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.