Giter Site home page Giter Site logo

nix-configs's Introduction

my nixos/home-manager flake configurations

  • darwin: home-manager only, I don’t employ nix-darwin.

  • aarch64, x86_64 vm(cloud and local): nixos with embeded home-manager.

  • legacy linux distribution like ubuntu: home-manager only.

home-manager tips

home-manager news --flake .

bootstrap tips

The newly installed NixOS does not come with vim by default, I’m not used to the nano editor. Use the following command to temporarily use vim:

nix --extra-experimental-features nix-command --extra-experimental-features flakes shell nixpkgs#vim
: make pin-registry
: nix shell nixpkgs#git nixpkgs#home-manager
: home-manager switch --flake .
: #or
: nix run nixpkgs#home-manager switch -- --flake .

: sudo nixos-rebuild switch --flake .#tart-vm

installation

new disk install

in-place installation by copytoram

lustrate installation

first, install nix, then install nixos from the flake:

$ bash <(curl -L https://nixos.org/nix/install) --daemon
$ e2label /dev/vda1 nixos
$ mkdir ~/.config/nix
$ cat <<EOF >~/.config/nix/nix.conf
experimental-features = nix-command flakes
keep-outputs = true
keep-derivations = true
max-jobs = auto
EOF
$ nix profile install --profile /nix/var/nix/profiles/system github:penglei/nix-configs#nixosConfigurations.slim.config.system.build.toplevel
$ sudo chown -R 0:0 /nix
$ sudo touch /etc/NIXOS
$ sudo touch /etc/NIXOS_LUSTRATE
$ echo etc/nixos | sudo tee -a /etc/NIXOS_LUSTRATE
etc/nixos
$ sudo mv -v /boot /boot.bak
renamed '/boot' -> '/boot.bak'
$ sudo /nix/var/nix/profiles/system/bin/switch-to-configuration boot
$ shutdown -r now
$ nix-collect-garbage

references

yabai

# launchctl load -F ~/Library/LaunchAgents/org.nix-community.home.yabai.plist
# launchctl unload -F ~/Library/LaunchAgents/org.nix-community.home.yabai.plist
# launchctl kickstart -k gui/$(id -u)/org.nix-community.home.yabai

rime/squirrel

based on: github.com/iDvel/rime-ice

log location:

  • $TMPDIR/rime.squirrel.INFO

  • $TMPDIR/rime.squirrel.ERROR

force deploy (nix home-manager links rime config):

rm -rf ~/Library/Rime/build

# Press Ctrl+Option(left)+` to re-deploy

Shift+space as switcher key: rime/squirrel#113

installation.yaml should be writable after upgrading squirrel.

launchctl

launchctl bootout gui/$UID ./org.sketchybar.plist

nix-configs's People

Contributors

penglei avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.