Coder Social home page Coder Social logo

nixos's Introduction

Nixos Configrations

Environment

export NIX_CONFIG="experimental-features = nix-command flakes"

Partitioning

sudo mount /dev/disk/by-label/nixos /mnt

# in case of gpt, flag a f32 partition with esp,boot

sudo mkdir -p /mnt/boot
sudo mount /dev/disk/by-label/BOOT /mnt/boot

Configrations

Hardwares

sudo nixos-generate-config --root /mnt

Installation

sudo nixos-rebuild switch --flake '.#hostname'

# or

sudo nixos-install --flake '.#hostname'

Home Manager

To apply home configrationsm run, this is with standalone installer. If you don’t have home-manager installed, try,

nix shell nixpkgs#home-manager

home-manager switch --flake '.#hostname@hostname'

Packages, services, settings, etc.

NixEnv

To install and run applications.

nix-env -iA nixos.htop

# To list all the installed envs.

nix-env

nix-env -uninstall htop

# *man configrations.nix* for more docs.

Post Setup

Channels

sudo nix-channel --list

sudo nix-channel --add https://nixos.org/channels/nixpkgs-unstable unstable

sudo nix-channel --update

Node

mkdir ~/nodejs_globals
npm config set prefix '~/nodejs_globals'
npm install -g instant-markdown-d
# ln -s ~/nodejs_globals/bin/ ~/bin # optional, path already in zshrc

Fonts

For all the glyphs and symbols please, copy all the fonts to nixos font directory. ~/.local/share/fonts. see nixos fonts for more details.

Todo

Wireless Driver not supported on vintage host. rtl8723be. Wifi not working

mkdir -p /lib/firmware/rtlwifi
git clone https://github.com/rtlwifi-linux/rtlwifi_new.git
cd firmware/rtlwifi
# and copy either rtl8723befw.bin  rtlwifi/
cp rtl8723befw.bin rtlwifi/ /lib/firmware
# and then reboot it worked yay !

Reference

nixos's People

Watchers

codeandloads 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.