GithubHelp home page GithubHelp logo

nixos-config's Introduction

NixOS config of my computer

Tested with NixOS 18.09

How to install?

You need to setup partitions before you can setup this and these partitions are defined in the hardware-configuration.nix file in the repository. To install this configuration you need:

  1. "NixOS" labeled BTRFS partition where the operating system will be installed.
  2. "EFI" labeled EFI partition with boot flag where the bootloader will be installed.
  3. "Swap" labeled partition which will be used as Linux swap.

Please ensure that you have a working internet connection as this step will download a lot of data. You need to download the NixOS installer, boot with it and mount the partitions to install base system:

# mount /dev/disk/by-partlabel/NixOS /mnt
# mkdir /mnt/boot
# mount /dev/disk/by-partlabel/EFI /mnt/boot
# mkdir -p /mnt/etc/nixos
# cp <config path> /mnt/etc/nixos/
# nixos-install   # installs the base system

This will set you up with a bootable system and once it's finished, you will reboot into a configuration that matches what I'm running on my computer.

Notes to self

  1. (in comments) e: <var>
    Commented expr affects expr "var" in some way and this comment is used to mark relationship between them if they are defined at distant places.
    This is to make sure that I remember to update downstream expr if I update this expr.
    For example: environment.variables.EDITOR (= "nvim") depends on neovim being installed but they are defined at different places.

nixos-config's People

Contributors

shreyanshk avatar

Stargazers

 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.