GithubHelp home page GithubHelp logo

fxcl / .dotfiles Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 12.03 MB

License: Apache License 2.0

Makefile 0.15% Shell 10.66% Lua 72.10% Python 0.80% Vim Script 0.90% Scheme 0.10% Vim Snippet 0.10% Nix 11.82% Swift 0.13% AppleScript 0.02% Emacs Lisp 1.85% YASnippet 0.03% Go 1.35% GDB 0.01%

.dotfiles's Introduction

Nix Configs for Darwin ❄️ ≃ 💙

Build

Provisioning for my Macbook's based on Nix.

Secrets

Generally all secrets are encrypted with agenix, so make sure to copy the SSH keys from the secrets stick with these commands:

mkdir -p $HOME/.ssh
cp /Volumes/secrets/ssh/id_* $HOME/.ssh/
chmod u=rw,g=,o= $HOME/.ssh/id_*
sudo chmod -R 777 ~/.local/share/nvim

Prepare

Generally we disable SIP, just boot into the recovery system and open a terminal to execute csrutil disable, after rebooting into the regular system you can check with csrutil status if it's still disabled.

Generally it's a good idea to install all apps from the store which have been bought, especially Xcode, otherwise it fails to build macOS applications.

Osiris

Bootstrap

online:

bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
sh <(curl -L https://nixos.org/nix/install)
echo "run\tprivate/var/run" | sudo tee -a /etc/synthetic.conf
reboot

nix \
    --extra-experimental-features "nix-command flakes" \
    build \
    github:fxcl/dotfiles\#tony \
    --no-write-lock-file

./result/sw/bin/darwin-rebuild switch \
    --flake github:fxcl/dotfiles\#tony

local:

nix \
    --extra-experimental-features "nix-command flakes" \
    build \
    .\#tony

./result/sw/bin/darwin-rebuild switch \
    --flake .\#tony

Updates

If the repository had been cloned you could just execute make switch, otherwise there is still this long option to update the deployment:

onlone:

darwin-rebuild switch \
    --flake github:fxcl/dotfiles\#tony

local:

darwin-rebuild switch \
  --flake .\#tony

Hathor

Bootstrap

bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
sh <(curl -L https://nixos.org/nix/install)
echo "run\tprivate/var/run" | sudo tee -a /etc/synthetic.conf
reboot

nix \
    --extra-experimental-features "nix-command flakes" \
    build \
    github:fxcl/dotfiles\#vvh \
    --no-write-lock-file

./result/sw/bin/darwin-rebuild switch \
    --flake github:fxcl/dotfiles\#vvh

Updates

If the repository had been cloned you could just execute make switch, otherwise there is still this long option to update the deployment:

darwin-rebuild switch \
    --flake github:fxcl/dotfiles\#vvh

Security

If you find a security issue please contact [email protected] first.

Contributing

Fork -> Patch -> Push -> Pull Request

Authors

License

Apache-2.0

Copyright

Copyright (c) 2014 ZXFTech <[email protected]>

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.