No description
Find a file
Cyryl Płotnicki 5e5529c314 Add news feed
2021-05-18 21:59:03 +01:00
.config Add intel gpu stats to the bar 2021-05-16 13:06:38 +01:00
.github Update FUNDING.yml 2019-09-28 09:41:30 +01:00
.Slic3r slic3r version upgrade 2015-01-24 09:52:01 +01:00
guix Add channels for guix 2021-05-15 15:51:57 +01:00
nixos Add news feed 2021-05-18 21:59:03 +01:00
tools add bfg via nix 2021-04-03 12:52:05 +01:00
.build.yml always force push on sync to github 2021-04-22 20:36:01 +01:00
.gdbinit better gdb dashboard setup 2021-01-30 15:56:36 +00:00
.ghci ghci config added 2015-02-28 22:39:29 +01:00
.gitattributes Add windows debug tools (#93) 2017-01-19 10:03:34 +00:00
.gitconfig.cygwin Add windows debug tools (#93) 2017-01-19 10:03:34 +00:00
.gitconfig.linux Add basic Windows-specific git configs (#72) 2017-01-24 19:53:30 +00:00
.gitconfig.linux.form3 Change key signature for work 2020-10-16 17:06:41 +01:00
.gitconfig.linux.private use delta for git diff 2020-10-17 13:37:33 +01:00
.gitconfig.mac Add basic Windows-specific git configs (#72) 2017-01-24 19:53:30 +00:00
.gitconfig.windows Add basic Windows-specific git configs (#72) 2017-01-24 19:53:30 +00:00
.gitconfig_includes.common more more git config to nix 2020-08-01 08:33:33 +01:00
.gitconfig_includes.cygwin Add basic Windows-specific git configs (#72) 2017-01-24 19:53:30 +00:00
.gitconfig_includes.mac Add Mac support (#89) 2017-01-26 05:44:03 +00:00
.gitconfig_includes.windows Add basic Windows-specific git configs (#72) 2017-01-24 19:53:30 +00:00
.gitignore remove printer 2020-12-22 16:24:12 +00:00
.gitmodules remove submodule 2020-08-01 10:44:53 +01:00
.vimrc Add nerdtree 2019-02-22 16:08:40 +00:00
.vimrc.keymap add global grep to vim 2020-09-06 00:24:38 +01:00
.vimrc.nixos Use relative paths for vim configs 2019-08-24 18:53:12 +01:00
.vimrc.plugins-settings add global grep to vim 2020-09-06 00:24:38 +01:00
.vimrc.settings special indent for yaml files 2020-10-25 14:56:37 +00:00
LICENSE Update LICENSE 2017-10-07 11:47:40 +01:00
README.md more notes 2021-04-11 12:18:03 +01:00

My dotfiles - including my vim, terminal and font configs. Mostly focusing on setting things up on NixOS, but supporting other OSes where possible.

bootstrap new machine with NixOS:

  1. boot the target machine from the livecd
  2. change password for the default user nixos
  3. ssh from another, already bootstrapped, machine

remote:

sudo su -
# `efibootmgr -b 000x -B` if you want to remove entry number x
yes | parted /dev/sda -- mklabel gpt
parted /dev/sda -- rm 1
parted /dev/sda -- rm 2
parted /dev/sda -- rm 3
parted /dev/sda -- rm 4
parted /dev/sda -- mkpart ESP fat32 1MiB 1GiB
parted /dev/sda -- set 1 esp on
parted /dev/sda -- mkpart primary 1GiB 100%
cryptsetup luksFormat /dev/sda2

remote:

cryptsetup luksOpen /dev/sda2 crypt

remote:

mkfs.fat -F 32 -n boot /dev/sda1
mkfs.btrfs -L nixos /dev/mapper/crypt
sleep 1
mount /dev/disk/by-label/nixos /mnt
mkdir -p /mnt/boot
mount /dev/disk/by-label/boot /mnt/boot
nixos-generate-config --root /mnt
nixos-install

local:

tar -cvz . > ../dotfiles.tar.gz
scp ../dotfiles.tar.gz nixos@remote:/tmp

remote:

mkdir -p /mnt/home/cyryl/dev/dotfiles/
tar -xvf /tmp/dotfiles.tar.gz -C /mnt/home/cyryl/dev/dotfiles
cp /mnt/etc/nixos/hardware-configuration.nix /mnt/home/cyryl/dev/dotfiles/nixos/boxes/bootstrap/
ln -vfs /mnt/home/cyryl/dev/dotfiles/nixos/boxes/bootstrap/1.nix /mnt/etc/nixos/configuration.nix
nixos-install
reboot

ctrl-alt-f1 root login:

ln -vfs /home/cyryl/dev/dotfiles/nixos/boxes/bootstrap/2.nix /etc/nixos/configuration.nix
vim /home/cyryl/dev/dotfiles/nixos/boxes/bootstrap/2.nix
nixos-rebuild switch
passwd cyryl
chown cyryl -R /home/cyryl
reboot

gui-login as cyryl:

cd ~/dev/dotfiles/
mkdir -p nixos/boxes/HOSTNAME
cp nixos/boxes/bootstrap/2.nix nixos/boxes/HOSTNAME/default.nix
cp nixos/boxes/bootstrap/hardware-configuration.nix nixos/boxes/HOSTNAME/
sudo ln -vfs /home/cyryl/dev/dotfiles/nixos/boxes/HOSTNAME/default.nix /etc/nixos/configuration.nix
sudo nixos-rebuild switch --upgrade
reboot
ssh-keygen -t ed25519
# syncthing
# vault
# firefox sync
# bitwarden
# add key to sr.ht
cd ~/dev/dotfiles
git remote add git@git.sr.ht:~cyplo/dotfiles
git checkout nixos/boxes/bootstrap

guix

I'm just starting to play with guix, these are just loose notes: