Skip to content

Pablo1107/dotfiles

Repository files navigation

Arch Linux + Nix config

TODO: bootstrap Arch Linux install

Bootstrap Home Manager

nix run --no-write-lock-file github:nix-community/home-manager/ -- --flake ".#$USER" switch

Run this command

home-manager switch --flake .

Nix Darwin config

Nix Darwin Screenshot

Run this command

nix shell nixpkgs\#git
nix clone https://github.com/Pablo1107/dotfiles
nix run nix-darwin --extra-experimental-features nix-command --extra-experimental-features flakes -- switch --flake .
darwin-rebuild switch --flake .

Nix on Android config

Nix on Droid Screenshot

First install

nix --extra-experimental-features nix-command shell --extra-experimental-features flakes nixpkgs#git
ssh-keygen
git clone https://github.com/Pablo1107/dotfiles

Run this command

nix-on-droid switch --flake ".#sm-g950f"

NixOS on RPi

sudo pacman -S qemu-user-static qemu-user-static-binfmt
nix build .#nixosConfigurations.rpi.config.system.build.sdImage
rm -rf run-rpi-vm && cp result/bin/run-rpi-vm . && sed -i "s/[^ ]*qemu-host-cpu-only[^ ]*/$(which qemu-system-aarch64 | sed 's/\//\\\//g')/" run-rpi-vm && ./run-rpi-vm -serial stdio

NixOS on Server

nixos-rebuild switch --flake .#server --target-host "root@nixos.local"

Nix Template

nix flake init -t ~/dotfiles\#template

Some known issues

unsupported tarball input

       error: unsupported tarball input attribute 'lastModified'

Solution:

jq '.nodes |= map_values(if .locked.type? == "tarball" then .locked |= del(.lastModified) else . end)' flake.lock > flake.lock.new

source

Nix 17 vs Nix 18

nix-community/home-manager#4692

SteamVR not launching

First you have to run this command after installing SteamVR:

sudo setcap CAP_SYS_NICE+ep ~/.local/share/Steam/steamapps/common/SteamVR/bin/linux64/vrcompositor-launcher

Then add this as launch option in SteamVR settings:

QT_QPA_PLATFORM=xcb __GLX_VENDOR_LIBRARY_NAME=nvidia __NV_PRIME_RENDER_OFFLOAD=1 VK_DRIVER_FILES=/run/opengl-driver/share/vulkan/icd.d/nvidia_icd.x86_64.json /home/pablo/.local/share/Steam/steamapps/common/SteamVR/bin/vrmonitor.sh %command%

And this for every VR game you want to launch through Steam:

QT_QPA_PLATFORM=xcb __GLX_VENDOR_LIBRARY_NAME=nvidia __NV_PRIME_RENDER_OFFLOAD=1 VK_DRIVER_FILES=/run/opengl-driver/share/vulkan/icd.d/nvidia_icd.x86_64.json %command%

Note the additional QT_QPA_PLATFORM=xcb at the beginning, apart from what ALVR recommends.

Also note the VK_DRIVER_FILES path may vary depending on the nvidia version you have installed.

Half Life: Alyx

env PRESSURE_VESSEL_IMPORT_OPENXR_1_RUNTIMES=1 %command% -novid

About

NixOS, Home Manager and Nix Darwin configurations

Resources

Stars

Watchers

Forks

Packages

No packages published