Skip to content

Arpple/dotfiles-nix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotfiles

NixOS setup

sudo su
cfdisk
# /dev/sda1 512M EFI system
# /dev/sda2 2G Linux Swap
# /dev/sda3 - Linux File

mkfs.fat -F32 /dev/sda1
mkswap /dev/sda2
swapon /dev/sda2
mkfs.ext4 /dev/sda3
mount /dev/sda3 /mnt

mkdir -p /mnt/boot
mount /dev/sda1 /mnt/boot

ln -sF "$PWD/nixos" /mnt/etc/nixos
nixos-install
reboot

login as root and `passwd arpple`

Install Home-Manager

mkdir -p ~/.config/nixpkgs
ln -sF "$PWD/home.nix" $HOME/.config/nixpkgs/home.nix
nix-channel --add https://github.com/nix-community/home-manager/archive/release-21.05.tar.gz home-manager
nix-channel --update
# relogin
nix-shell '<home-manager>' -A install
home-manager switch

Install doom emacs

git clone --depth 1 https://github.com/hlissner/doom-emacs ~/.emacs.d
~/.emacs.d/bin/doom install

Troubleshoots

sqlite error on non-exists command

sqlite error when running non-exists command

sudo nix-channel --update

setup postgres password

connect to postgres with alias helper

psql-connect

enter sql

ALTER USER postgres PASSWORD 'postgres';

npm install error with building node-gyp

use local node instead of global

nix-shell -p nodejs-16_x # or other version
npm install

start emacs server

systemctl --user enable --now emacs

rofi theme break after upgrade system

run select theme again

rofi-select-theme

About

configuration for nixos in guest VM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published