Coder Social home page Coder Social logo

dotfiles's Introduction

What is this?

my collection of dot files for building my nixos systems.

Installation

The installation process is in 2 stages:

  • installing minimal system
  • installing system & user configuration

Obtaining NixOs

This step requires the minimal NixOs image. Options are:

  • download the minimal image
  • build the minimal image

Downloading minimal image:

Simply follow the steps in NixOs user-guide

Building the minimal image

First, write the following in to a file named custom-media.nix:

{ pkgs, modulesPath, ... }: {
    imports = [
        "${modulesPath}/installer/cd-dvd/installation-cd-graphical-gnome.nix"
    ];

    boot.kernelPackages = pkgs.linuxPackages_latest;
}

Then enter a nix-shell with nixos-generators and build the media:

nix-shell -p nixos-generators
nix-shell$ nixos-generate -I nixpkgs=channel:nixos-unstable --format iso --configuration ./custom-media.nix 

Finally copy the ISO to USB disk, on my system its /dev/sda.

Note: the sync at the end is critical.

$ sudo cp /nix/store/gnnbjvd916yh1f4svbgrssq94550pbxl-nixos-21.11pre304626.8ecc61c91a5-x86_64-linux.iso/iso/nixos-21.11pre304626.8ecc61c91a5-x86_64-linux.iso /dev/sda
$ sudo sync

BIOS related stuff

  • Disable RAID mode

Installing minimal NixOs system

Follow the NixOs Chapter2 user-guide

Side Note

For my system, I used swap file in favor of swap partition.

Configuring the system

To configure the system:

git clone [email protected]:kayvank/dotfiles.git ~/.config/dotfiles
cd ~/.config/dotfiles
  • Installing system configurations:
./apply-system ## installs system configs
./update
  • Installing user configurations:
cd ~/.config/dotfiles
./apply-user.sh  ## installs user configs
./update

Reference

The main idea for this repo is from:

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.