Coder Social home page Coder Social logo

dotfiles's Introduction

dotfiles

Made with Doom Emacs

Install

  1. Clone this repository:

    sudo git clone https://github.com/sei40kr/dotfiles.git /etc/dotfiles
    sudo chown -R $USER /etc/dotfiles
    ln -fs /etc/dotfiles ~/.dotfiles

Darwin

  1. Install Nix via multi-user installation (see Download Nix / NixOS):

    sh <(curl -L https://nixos.org/nix/install) --daemon
  2. Create a symlink from /run to /var/run:

    printf 'run\tprivate/var/run\n' | sudo tee -a /etc/synthetic.conf
    /System/Library/Filesystems/apfs.fs/Contents/Resources/apfs.util -B # For Catalina
    /System/Library/Filesystems/apfs.fs/Contents/Resources/apfs.util -t # For Big Sur and later
  3. Build the configuration with darwin-rebuild (if ./result/sw/bin/darwin-rebuild does not exist):

    cd ~/.dotfiles
    nix --extra-experimental-features 'nix-command flakes' build '.#darwinConfigurations.<host>.system'
  4. Switch to the new configuration:

    ./result/sw/bin/darwin-rebuild switch --flake '.#<host>'

NixOS

  1. Enter Nix shell (for the first time only):

    nix-shell
  2. Then, switch to the new configuration:

    nixos-rebuild switch --flake '.#<hostname>'

Things to Do Manually

Darwin

Install Homebrew

Some packages are installed via Homebrew. You need to install Homebrew manually first; otherwise, the installation of those packages will be skipped.

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  • Generate a pair of SSH keys and add it to your GitHub account:

    ssh-keygen -t ecdsa
  • Install Google Chrome

  • Install Doom Emacs:

    git clone --depth 1 https://github.com/doomemacs/doomemacs ~/.emacs.d
    ~/.emacs.d/bin/doom install

Acknowledgements

dotfiles's People

Contributors

sei40kr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dotfiles's Issues

Add automated installer

Add automated installer to install dependencies below.

  • tmux
  • zsh
  • zplug
  • vim-plug
  • Powerline theme
  • tig
  • Docker
  • SDKMAN!
  • NVM
  • Yarn
  • NativeScript

fix(fcitx5): mozc suddenly gets broken

Logs
Dec 15 02:26:37 nixos systemd[1601]: Started Highly customizable Wayland bar for Sway and Wlroots based compositors..
Dec 15 02:26:38 nixos dbus-daemon[1900]: [session uid=1000 pid=1900] Activating service name='org.fcitx.Fcitx5' requested by ':1.139046' (uid=1000 pid=489095 comm="fcitx5-remote " label="kernel")
Dec 15 02:26:38 nixos org.fcitx.Fcitx5[489099]: I2021-12-15 02:26:38.106979 instance.cpp:1354] Override Enabled Addons: {}
Dec 15 02:26:38 nixos org.fcitx.Fcitx5[489099]: I2021-12-15 02:26:38.107041 instance.cpp:1355] Override Disabled Addons: {}
Dec 15 02:26:38 nixos org.fcitx.Fcitx5[489099]: I2021-12-15 02:26:38.108772 addonmanager.cpp:189] Loaded addon wayland
Dec 15 02:26:38 nixos org.fcitx.Fcitx5[489099]: I2021-12-15 02:26:38.110356 addonmanager.cpp:189] Loaded addon imselector
Dec 15 02:26:38 nixos org.fcitx.Fcitx5[489099]: I2021-12-15 02:26:38.141185 addonmanager.cpp:189] Loaded addon xcb
Dec 15 02:26:38 nixos org.fcitx.Fcitx5[489099]: I2021-12-15 02:26:38.144214 addonmanager.cpp:189] Loaded addon quickphrase
Dec 15 02:26:38 nixos org.fcitx.Fcitx5[489099]: I2021-12-15 02:26:38.145230 addonmanager.cpp:189] Loaded addon waylandim
Dec 15 02:26:38 nixos org.fcitx.Fcitx5[489099]: I2021-12-15 02:26:38.153890 addonmanager.cpp:189] Loaded addon keyboard
Dec 15 02:26:38 nixos org.fcitx.Fcitx5[489099]: I2021-12-15 02:26:38.155004 addonmanager.cpp:189] Loaded addon clipboard
Dec 15 02:26:38 nixos org.fcitx.Fcitx5[489099]: I2021-12-15 02:26:38.155845 addonmanager.cpp:189] Loaded addon unicode
Dec 15 02:26:38 nixos dbus-daemon[1900]: [session uid=1000 pid=1900] Successfully activated service 'org.fcitx.Fcitx5'
Dec 15 02:26:38 nixos org.fcitx.Fcitx5[489099]: I2021-12-15 02:26:38.157513 addonmanager.cpp:189] Loaded addon dbus
Dec 15 02:26:38 nixos org.fcitx.Fcitx5[489099]: I2021-12-15 02:26:38.160403 addonmanager.cpp:189] Loaded addon dbusfrontend
Dec 15 02:26:38 nixos org.fcitx.Fcitx5[489099]: I2021-12-15 02:26:38.163678 addonmanager.cpp:189] Loaded addon fcitx4frontend
Dec 15 02:26:38 nixos org.fcitx.Fcitx5[489099]: I2021-12-15 02:26:38.167863 addonmanager.cpp:189] Loaded addon ibusfrontend
Dec 15 02:26:38 nixos org.fcitx.Fcitx5[489099]: I2021-12-15 02:26:38.168411 addonmanager.cpp:189] Loaded addon xim
Dec 15 02:26:38 nixos org.fcitx.Fcitx5[489099]: I2021-12-15 02:26:38.195995 inputmethodmanager.cpp:198] Found 697 input method(s) in addon keyboard
Dec 15 02:26:38 nixos org.fcitx.Fcitx5[489099]: W2021-12-15 02:26:38.196244 inputmethodmanager.cpp:96] Group Item mozc in group Default is not valid. Removed.

feat(emacs): use emacsclient to emacs by default

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.