{"id":13466928,"url":"https://github.com/shaunsingh/nix-darwin-dotfiles","last_synced_at":"2025-04-05T21:07:57.362Z","repository":{"id":39405879,"uuid":"338496522","full_name":"shaunsingh/nix-darwin-dotfiles","owner":"shaunsingh","description":"Dotfiles managed via Nix-Darwin and Mk-Darwin-System, for schoolwork and kotlin, lua, and rust programming","archived":false,"fork":false,"pushed_at":"2023-11-25T21:07:21.000Z","size":427267,"stargazers_count":404,"open_issues_count":0,"forks_count":26,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-03-29T20:07:57.338Z","etag":null,"topics":["doom-emacs","emacs-configuration","neovim-lua","nix","nix-darwin","nix-flake"],"latest_commit_sha":null,"homepage":"","language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shaunsingh.png","metadata":{"files":{"readme":"README.org","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-02-13T04:31:09.000Z","updated_at":"2025-03-22T17:25:32.000Z","dependencies_parsed_at":"2024-01-13T19:19:08.488Z","dependency_job_id":null,"html_url":"https://github.com/shaunsingh/nix-darwin-dotfiles","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaunsingh%2Fnix-darwin-dotfiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaunsingh%2Fnix-darwin-dotfiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaunsingh%2Fnix-darwin-dotfiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaunsingh%2Fnix-darwin-dotfiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shaunsingh","download_url":"https://codeload.github.com/shaunsingh/nix-darwin-dotfiles/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247399877,"owners_count":20932876,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["doom-emacs","emacs-configuration","neovim-lua","nix","nix-darwin","nix-flake"],"created_at":"2024-07-31T15:00:51.491Z","updated_at":"2025-04-05T21:07:57.328Z","avatar_url":"https://github.com/shaunsingh.png","language":"Nix","funding_links":[],"categories":["Nix","Common Lisp"],"sub_categories":[],"readme":"#+title: Nix-Darwin-Dotfiles\n#+subtitle: Dotfiles managed via [[https://github.com/LnL7/nix-darwin][Nix-Darwin]], and [[https://github.com/nix-community/home-manager][Home-Manager]]\n#+author: shaunsingh\n\n* Images \n[[./extra/assets/out.png]]\n\n* Installing and notes\n\n** Linux \nNOTE: the linux config is specifically set up for a 7th gen x1 carbon, and depends on my emacs configuration. Don't use this unless you know what you're doing. You're likely here for the MacOS flake, if so just skip on ahead!\n#+begin_src sh\nnix-shell -p nixUnstable git\nnixos-install --flake https://github.com/shaunsingh/nix-darwin-dotfiles#shaunsingh-thinkpad\n#+end_src\n\n** MacOS \n*NOTE: These are available as an executable script [[./extra/install.sh]]*\nInstall Nix. I have it setup for multi-user, but you can remove the =--daemon= if you want a single user install\n    #+begin_src sh :comments both :tangle \"./extra/install.sh\" :shebang \"#!/bin/bash\"\n    sh \u003c(curl -L https://nixos.org/nix/install) --daemon\n    #+end_src\nLaunch an ephemeral shell with git, nixUnstable, and Emacs\n    #+begin_src sh :comments both :tangle \"./extra/install.sh\" :shebang \"#!/bin/bash\"\n    nix-shell -p nixUnstable emacs\n    #+end_src\nTangle the =.org= files (not needed, but recommend in case I forgot to update tangled files)\n    #+begin_src sh :comments both :tangle \"./extra/install.sh\" :shebang \"#!/bin/bash\"\n    git clone --depth 1 https://github.com/shaunsingh/nix-darwin-dotfiles.git ~/nix-darwin-dotfiles/ \u0026\u0026 cd ~/nix-darwin-dotfiles\n    emacs --batch --eval \"(progn (require 'org) (setq org-confirm-babel-evaluate nil) (org-babel-tangle-file \\\"~/nix-darwin-dotfiles/nix-config.org\\\"))\"\n    emacs --batch --eval \"(progn (require 'org) (setq org-confirm-babel-evaluate nil) (org-babel-tangle-file \\\"~/nix-darwin-dotfiles/configs/doom/config.org\\\"))\"\n    #+end_src\n\t(if emacs asks you for comment syntax, put `# ` for everything)\nBuild, and switch to the dotfiles\n    #+begin_src sh :comments both :tangle \"./extra/install.sh\" :shebang \"#!/bin/bash\"\n    nix build ~/nix-darwin-dotfiles\\#darwinConfigurations.shaunsingh-laptop.system --extra-experimental-features nix-command --extra-experimental-features flakes\n    ./result/sw/bin/darwin-rebuild switch --flake .#shaunsingh-laptop\n    #+end_src\n(note, =--extra-experimental-features= is only needed the first time around. After that the configuration will edit =/etc/nix/nix.conf= to enable flakes and nix-command by default)\nSymlinking with nix (and managing doom with =nix-doom-emacs=) is very finicky, so for now we need to manually symlink them\n    #+begin_src sh :comments both :tangle \"./extra/install.sh\" :shebang \"#!/bin/bash\"\n    ln -s ~/nix-darwin-dotfiles/configs/doom/ ~/.config/doom\n    #+end_src\nInstall doom emacs\n    #+begin_src sh :comments both :tangle \"./extra/install.sh\" :shebang \"#!/bin/bash\"\n    git clone --depth 1 https://github.com/hlissner/doom-emacs ~/.config/emacs\n    ~/.config/emacs/bin/doom install\n    #+end_src\n\n* Feedback\nSuggestions/improvements\n[[https://github.com/shaunsingh/vimrc-dotfiles/issues][welcome]]!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaunsingh%2Fnix-darwin-dotfiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshaunsingh%2Fnix-darwin-dotfiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaunsingh%2Fnix-darwin-dotfiles/lists"}