Skip to content

s0racat/dotfiles-nix

Repository files navigation

Debian WSL

sudo passwd -d takumi
sudo apt update; sudo apt upgrade -y
sudo dpkg-reconfigure locales # select en_US.UTF-8, ja_JP.UTF-8
sudo apt install curl xz-utils zsh -y
sh <(curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install) --daemon
echo 'trusted-users = root @sudo' | sudo tee -a /etc/nix/nix.conf
git clone https://github.com/s0racat/dotfiles-nix
cd dotfiles-nix
export NIX_CONFIG="experimental-features = nix-command flakes"
exec bash
nix run home-manager/master -- switch --flake . -b hmbak
chsh -s $(which zsh)

Disable appendWindowsPath

echo -e '[interop]\nappendWindowsPath = false' | sudo tee -a /etc/wsl.conf

docker

https://learn.microsoft.com/ja-jp/windows/wsl/systemd

https://docs.docker.com/engine/install/ubuntu/

sudo gpasswd -a $USER docker

install NixOS

sudo systemctl start wpa_supplicant.service
wpa_cli
> scan
> scan_results
> add_network
> set_network 0 ssid "MYSSID"
> set_network 0 psk "passphrase"
> enable_network 0
sudo -i
device=/dev/nvme0n1
cgdisk $device
# NIXBOOT: 500M, LUKS: Remainder of the device
luks=${device}p2
esp=${device}p1
mkfs.fat -F32 -n NIXBOOT $esp
cryptsetup luksFormat -v --label LUKS $luks
cryptsetup open $luks luks
mkfs.ext4 -L NIXROOT /dev/mapper/luks
mount /dev/mapper/luks /mnt
mount -m $esp /mnt/boot
# to setup secureboot, see https://github.com/nix-community/lanzaboote/blob/master/docs/QUICK_START.md

nix-shell -p gitMinimal
git clone https://github.com/s0racat/dotfiles-nix
cd dotfiles-nix
nixos-install --flake .#um690pro
reboot

# login with takumi, password: 123456
passwd
nmtui
sudo systemd-cryptenroll --tpm2-device=auto $luks

gh

gh.exe auth login -c

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors