Giter VIP home page Giter VIP logo

nixos-config's Introduction

mjrusso's NixOS System Configurations

Setup and Installation

Note

Mac only for now. I haven't tested this config on NixOS yet.

Mac

Install dependencies:

xcode-select --install

Next, install Nix using The Determinate Nix Installer.

Then clone this repository, cd into the directory, and run the following command to build and apply changes:

nix run .#build-switch

Additional Setup

Fish

Fish needs to be manually set as the login shell:

echo ~/.nix-profile/bin/fish | sudo tee -a /etc/shells
chsh -s ~/.nix-profile/bin/fish

See:

Fonts

I use Berkely Mono, which must be manually installed.

Homebrew

I use Homebrew for a few dependencies on Mac. (Homebrew must be manually installed, as per the official installation instructions.)

Note that the template that this config is built off of uses nix-homebrew to manage the Homebrew installation. I've removed that from here (at least for now) as I don't think it's worth the extra complexity (especially since Nix is dramatically reducing my reliance on Homebrew). I'm not using nix-darwin's Homebrew-related features either; I'll just manage Homebrew separately for the time being.

Emacs

Emacs is installed via Nix, but my configuration is not part of this repository (and not managed by home-manager).

To grab my config:

git clone https://github.com/mjrusso/.emacs.d ~/.emacs.d

Notes:

Usage

(These commands must be executed from the directory that this repo has been cloned to.)

To build and apply changes:

nix run .#build-switch

Note

Only files in the working tree will be copied to the Nix Store. Ensure that any new files have been added to the working tree (use git add) before running nix run .#build or nix run .#build-switch, or they will be ignored. (The files do not need to be committed to the repo.)

To update dependencies:

nix flake update

References

Thanks

Thanks to Dustin Lyons's starter template, which this configuration is based off of.

nixos-config's People

Contributors

mjrusso avatar

Watchers

 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.