Skip to content
This repository has been archived by the owner on Jun 9, 2020. It is now read-only.

berbiche/nixos-config

Repository files navigation

nixos-config (ARCHIVED)

See my dotfiles configuration for my entire system configuration.

Building

Note that required hardward configuration has to be done before building any host under hosts/ (formatting drives, setting up the bootloader, etc.).

  1. Clone this repository

  2. Create the hostname file with the name of the host to build. The host should exist under hosts/${HOST}.nix otherwise a compilation error will be reported.

    Example:

    $ echo "thixxos" >> hostname
  3. Add the necessary channels (TODO: automate)

    $ sudo nix-channel --add https://nixos.org/channels/nixos-unstable
    
    $ sudo nix-channel --add https://github.com/rycee/home-manager/archive/master.tar.gz home-manager
    
    $ sudo nix-channel --add https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz nixpkgs-mozilla
    
    $ sudo nix-channel --add https://github.com/colemickens/nixpkgs-wayland/archive/master.tar.gz nixpkgs-wayland
    
    $ sudo nix-channel --list
    home-manager https://github.com/rycee/home-manager/archive/master.tar.gz
    nixos https://nixos.org/channels/nixos-unstable
    nixpkgs-mozilla https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz
    nixpkgs-wayland https://github.com/colemickens/nixpkgs-wayland/archive/master.tar.gz
    
    $ sudo nix-channel --update
  4. Build the system

    $ sudo nixos-rebuild boot -I nixos-config=./configuration.nix
    these derivations will be built:
      /nix/store/6dvwa00nx2sx5idq8gg5pq5ym6s7ih0j-nixos-rebuild.drv
    building '/nix/store/6dvwa00nx2sx5idq8gg5pq5ym6s7ih0j-nixos-rebuild.drv'...
    building Nix...
    building the system configuration... 
  5. Reboot in the new system configuration

    $ shutdown -r now

Updating

Rebuild with the --upgrade switch:

$ sudo nixos-rebuild --upgrade -I nixos-config=./configuration.nix

The path to the configuration.nix can either be relative or absolute.

About

See https://github.com/berbiche/dotfiles for my system configuration and dotfiles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages