Skip to content

susil-mohanty/nixconfig

Repository files navigation

My (almost) reproducible nixos configuration

"Features"

Installation

Not extensively tested, probably with hickups.

cd /etc/nixos
sudo chown -R $USER .
git init
git remote add origin [email protected]:sveitser/nixconfig.git
git pull --recurse-submodules origin master

# To save time, copy nixpkgs repo to /etc/nixos/nixpkgs from somewhere close.
git submodules init

ln -s /etc/nixos/nixpkgs ~/nixpkgs
ln -s /etc/nixos/home-nixpkgs ~/.config/nixpkgs

mv configuration.nix{,.bkp}
ln -s this-machines-config.nix configuration.nix

# we won't be using channels
rm -r ~/.nix-defexpr/*
ln -s /etc/nixos/nixpkgs ~/.nix-defexpr

sudo nixos-rebuild -I nixpkgs=/etc/nixos/nixpkgs -I nixos-config=/etc/nixos/configuration.nix switch

nix-shell ~/.config/nixpkgs/home-manager -A install
home-manager switch

# Probably best to reboot at this point.

Todo

  • Deterministic doom emacs setup.
    • doom-emacs submodule.
    • Emacs packages via nix.
  • Recompile xmonad when configuration is modified.

Credits

Inspired by and borrowed from https://github.com/adisbladis/nixconfig.

About

Nixos configuration.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published