Skip to content

Latest commit

 

History

History
230 lines (193 loc) · 7.18 KB

File metadata and controls

230 lines (193 loc) · 7.18 KB

Goal is to provide modular close to windows-godlike desktop experience

Installation

cd
git clone https://github.com/barsikus007/config
# cp config/nix/ ~/ && cd nix/
cd ~/config/nix/
sed -i 's/ogurez/YOUR_USERNAME/' flake.nix
sudo nixos-rebuild switch --flake .
home-manager switch --flake .

#? enable pre-commit
cd ..
prek install

Set user password and TODO other steps from NixOS installation manual

nix-on-droid specific

  1. in ~/.config/nix-on-droid/flake.nix
    1. set nixpkgs input to nixpkgs-unstable branch
  2. in ~/.config/nix-on-droid/nix-on-droid.nix
    1. add pipe-operators to experimental-features
    2. add git to environment.packages
  3. nix-on-droid switch --flake ~/.config/nix-on-droid
  4. cd && git clone https://github.com/barsikus007/config && cd -
  5. nix-on-droid switch --flake ~/config/nix

Asus ROG G14 2020-2021 specific

https://github.com/goodix-fp-linux-dev/goodix-fp-dump/blob/master/README.md

Too lazy to write this on nix

(OSError: [Errno 30] Read-only file system: 'clear-0.pgm' output is normal)

sudo $(nix build 'github:barsikus007/config?dir=nix#libs.goodix-patch-521d' --print-out-paths)/bin/run_521d
sudo $(nix build ~/config/nix#libs.goodix-patch-521d --print-out-paths)/bin/run_521d

nix itself

Nix install speedrun on existing system

  • TLDR
    • curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
      • enable systemd if wsl
      • alt installer curl --proto '=https' --tlsv1.2 -sSf -L https://artifacts.nixos.org/experimental-installer | sh -s -- install
    • offline install
  • TLDR
    • /nix/nix-installer uninstall

Config reference

  • uosc skin
    • with thumbfast
  • mpv.conf
    • no-border
    • snap-window
    • save-position-on-quit
    • screenshot-directory is desktop/
    • screenshot filename is more declare
    • sub font will be searched in fonts/
    • sub/aud language priority
    • ontop only when playing
    • profiles
      • playlist
        • move window to right down corner
        • resize to 25% of screen width
      • online (http)
        • same as playlist
      • music (mp3)
        • always show window
        • don't save position
  • input.conf
    • patched ru keybinds
    • middle-mouse-button to pin window on top
    • _/- to cycle video tracks
    • =/+ to cycle window sizes
    • Alt+[0-6] keys to change window size
    • k shuffle playlist
    • Alt+k unshuffle playlist
    • K loop/unloop playlist
    • n show file tags
    • crop/encode
      • crop
        • c for crop
        • Alt+c for soft crop
        • C for toggle crop (remove filter and crop)
        • l blur section
        • d remove crop filter
        • D remove soft crop
      • encode
        • e for webm no audio
        • E for source
        • Alt+e for mp4 no audio
  • crop/encode scripts

Imperative

GUI

  • Steam
    • Top left steam logo > Settings > Compatibility
      • Enable steam play for all titles
      • Default compatibility tool: GE-Proton
    • NTFS library fix
    • nvidia-offload gamemoderun mangohud %command%
  • Throne (formerly known as nekoray/nekobox)
    • Routing -> Routing settings -> DNS -> Direct DNS: 8.8.8.8

TODO

  • parse options.environment.systemPackages.files, home.packages for added pkgs + use script to get all installed by programs.*.enabled = true
    • same for ...packages.definitionsWithLocations
  • nix-on-droid
    • sudo
      • not worth it, use NixOS-AVF
        • fuck snapdragon, I need to use crosvm binary for that, I can't even use vm one
  • OpenWrt Image

shell

new software

alias

  • fzf-based wgu selector
    • best location for wg config files
      • nix secrets?
  • grep config folder for cheatsheets
    • parse mds to sections?
  • wsl find / -not -path '/mnt/*'
    • find / -not -path '/mnt/*' -name python -not -path '/home/*'
  • git config core.editor=code --wait --new-window
  • n* aliases
    • review them
    • nv show .files
    • nvf current dir or sudo or ignore /proc etc
  • llt ls tree
    • or lll
  • proto outdated --update
  • yt-dlp
    • yt-dlp -F {id}
    • cd ~/storage/downloads/ && yt-dlp -N 16 -R inf -f 135+251 {id}
  • rsync termux alias
  • bat for zcat
  • pastebin=echo "something" | curl -F 'file=@-' 0x0.st

other