Compare commits
82 Commits
8009def878
...
main
Author | SHA1 | Date | |
---|---|---|---|
ae8390c431
|
|||
edee508882
|
|||
6185de0a49
|
|||
48e6614a51
|
|||
2a06d68dfd
|
|||
3eb47b35d5
|
|||
58323fbb9d
|
|||
55c50243e1
|
|||
4b1c957f9c
|
|||
4493fd1a63
|
|||
f7c5c699b5
|
|||
582e057a88
|
|||
b5472e52f2
|
|||
9551996914
|
|||
cb3754c79f
|
|||
bd8b8b96c8
|
|||
fde1f32af8
|
|||
0bd22877fb
|
|||
a11ea65861
|
|||
bfafeb9450
|
|||
147dbab750
|
|||
b20126495e
|
|||
578b220288
|
|||
38cc471fee
|
|||
2822d6efed
|
|||
3223227eee
|
|||
4af88f7422
|
|||
2de443f050
|
|||
c328c8962c
|
|||
82cbe6a16b
|
|||
bf9fa63654
|
|||
e3ae68f7a0
|
|||
3fd926a84b
|
|||
5238493e10
|
|||
130d5dc39b
|
|||
f88d10043d
|
|||
902607d3f2
|
|||
3bed6ab7e8
|
|||
df5e2e152a
|
|||
eb3d37cbd8
|
|||
0e7be442ab
|
|||
05a036a07b
|
|||
115f8f5bfa
|
|||
52b24a13eb
|
|||
0c37402829
|
|||
59c60e9b09
|
|||
cca43233b1
|
|||
c122f90a78
|
|||
223e1d8556
|
|||
fcaf64f19f
|
|||
35cf87eb2e
|
|||
63b05b74b4
|
|||
a2b4835be3
|
|||
c365471cc6
|
|||
65e0539591
|
|||
10b7035a6c
|
|||
b3125f777a
|
|||
b65cc863e6
|
|||
69ef6ad5de
|
|||
4d05de816a
|
|||
c5aae9f656
|
|||
65a2cc2cf5
|
|||
94b2a83bc8
|
|||
52aedf330d
|
|||
f502ae1cf2
|
|||
ec4fb9acf5
|
|||
b919168c44
|
|||
8e8ce37574
|
|||
4534a5e1f6
|
|||
9c94f13ffb
|
|||
6b49860346
|
|||
84b9bb3558
|
|||
4586ccbb2a
|
|||
0570532add
|
|||
010c74b1b7
|
|||
e8d4263e65
|
|||
d4218579ce
|
|||
3c9dc77735
|
|||
a9e9c0a2e8 | |||
da0141cab8 | |||
213260ff94
|
|||
5fbf4f71a9
|
1
.chezmoiroot
Normal file
1
.chezmoiroot
Normal file
@ -0,0 +1 @@
|
|||||||
|
chezmoi
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1,3 @@
|
|||||||
result
|
result
|
||||||
|
.direnv
|
||||||
|
/.pre-commit-config.yaml
|
||||||
|
@ -8,6 +8,8 @@ This is how I manage my workstations. Currently using [nix](https://nixos.org) (
|
|||||||
1. Install nix-darwin:
|
1. Install nix-darwin:
|
||||||
* `nix-build https://github.com/LnL7/nix-darwin/archive/master.tar.gz -A installer`
|
* `nix-build https://github.com/LnL7/nix-darwin/archive/master.tar.gz -A installer`
|
||||||
* `./result/bin/darwin-installer`
|
* `./result/bin/darwin-installer`
|
||||||
1. Add home-manager channel: `nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager`
|
1. Add home-manager channel:
|
||||||
|
* `nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager`
|
||||||
|
* `nix-channel --update`
|
||||||
1. Link `./darwin/configuration.nix` to `~/.nixpkgs/darwin-configuration.nix`
|
1. Link `./darwin/configuration.nix` to `~/.nixpkgs/darwin-configuration.nix`
|
||||||
1. Run `darwin-rebuild switch`
|
1. Run `darwin-rebuild switch`
|
||||||
|
24
chezmoi/.chezmoiexternal.toml
Normal file
24
chezmoi/.chezmoiexternal.toml
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
[".config/emacs"]
|
||||||
|
type = "git-repo"
|
||||||
|
url = "https://github.com/doomemacs/doomemacs"
|
||||||
|
exact = true
|
||||||
|
stripComponents = 1
|
||||||
|
refreshPeriod = "24h"
|
||||||
|
[".config/tmux/plugins/tpm"]
|
||||||
|
type = "git-repo"
|
||||||
|
url = "https://github.com/tmux-plugins/tpm.git"
|
||||||
|
exact = true
|
||||||
|
stripComponents = 1
|
||||||
|
refreshPeriod = "24h"
|
||||||
|
[".oh-my-zsh"]
|
||||||
|
type = "git-repo"
|
||||||
|
url = "https://github.com/ohmyzsh/ohmyzsh.git"
|
||||||
|
exact = true
|
||||||
|
stripComponents = 1
|
||||||
|
refreshPeriod = "24h"
|
||||||
|
[".oh-my-zsh/custom/plugins/zsh-autosuggestions"]
|
||||||
|
type = "git-repo"
|
||||||
|
url = "https://github.com/zsh-users/zsh-autosuggestions.git"
|
||||||
|
exact = true
|
||||||
|
stripComponents = 1
|
||||||
|
refreshPeriod = "24h"
|
1
chezmoi/dot_asdfrc
Normal file
1
chezmoi/dot_asdfrc
Normal file
@ -0,0 +1 @@
|
|||||||
|
legacy_version_file = yes
|
26
chezmoi/dot_config/bat/config
Normal file
26
chezmoi/dot_config/bat/config
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
# This is `bat`s configuration file. Each line either contains a comment or
|
||||||
|
# a command-line option that you want to pass to `bat` by default. You can
|
||||||
|
# run `bat --help` to get a list of all possible configuration options.
|
||||||
|
|
||||||
|
# Specify desired highlighting theme (e.g. "TwoDark"). Run `bat --list-themes`
|
||||||
|
# for a list of all available themes
|
||||||
|
#--theme="TwoDark"
|
||||||
|
--theme="Dracula"
|
||||||
|
|
||||||
|
# Enable this to use italic text on the terminal. This is not supported on all
|
||||||
|
# terminal emulators (like tmux, by default):
|
||||||
|
#--italic-text=always
|
||||||
|
|
||||||
|
# Uncomment the following line to disable automatic paging:
|
||||||
|
#--paging=never
|
||||||
|
|
||||||
|
# Uncomment the following line if you are using less version >= 551 and want to
|
||||||
|
# enable mouse scrolling support in `bat` when running inside tmux. This might
|
||||||
|
# disable text selection, unless you press shift.
|
||||||
|
#--pager="less --RAW-CONTROL-CHARS --quit-if-one-screen --mouse"
|
||||||
|
|
||||||
|
# Syntax mappings: map a certain filename pattern to a language.
|
||||||
|
# Example 1: use the C++ syntax for Arduino .ino files
|
||||||
|
# Example 2: Use ".gitignore"-style highlighting for ".ignore" files
|
||||||
|
#--map-syntax "*.ino:C++"
|
||||||
|
#--map-syntax ".ignore:Git Ignore"
|
@ -30,9 +30,9 @@
|
|||||||
|
|
||||||
;; If you use `org' and don't want your org files in the default location below,
|
;; If you use `org' and don't want your org files in the default location below,
|
||||||
;; change `org-directory'. It must be set before org loads!
|
;; change `org-directory'. It must be set before org loads!
|
||||||
(setq deft-directory "~/Sync/Notes"
|
;; (setq deft-directory "~/Sync/Notes"
|
||||||
deft-default-extension "md"
|
;; deft-default-extension "md"
|
||||||
deft-recursive t)
|
;; deft-recursive t)
|
||||||
|
|
||||||
;; This determines the style of line numbers in effect. If set to `nil', line
|
;; This determines the style of line numbers in effect. If set to `nil', line
|
||||||
;; numbers are disabled. For relative line numbers, set this to `relative'.
|
;; numbers are disabled. For relative line numbers, set this to `relative'.
|
||||||
@ -57,8 +57,31 @@
|
|||||||
;; they are implemented.
|
;; they are implemented.
|
||||||
;;
|
;;
|
||||||
(global-wakatime-mode)
|
(global-wakatime-mode)
|
||||||
(pinentry-start)
|
|
||||||
|
|
||||||
(add-to-list 'auto-mode-alist '("\\.njk" . web-mode))
|
;; haskell
|
||||||
(setq lsp-haskell-formatting-provider "stylish-haskell")
|
(setq lsp-haskell-formatting-provider "stylish-haskell")
|
||||||
(setq nix-nixfmt-bin "nixpkgs-fmt")
|
|
||||||
|
;; llm
|
||||||
|
(gptel-make-ollama "Ollama"
|
||||||
|
:host "localhost:11434"
|
||||||
|
:stream t
|
||||||
|
:models '(mistral:latest))
|
||||||
|
|
||||||
|
;; nix-mode
|
||||||
|
(with-eval-after-load 'lsp-mode
|
||||||
|
(lsp-register-client
|
||||||
|
(make-lsp-client :new-connection (lsp-stdio-connection "nixd")
|
||||||
|
:major-modes '(nix-mode)
|
||||||
|
:priority 0
|
||||||
|
:server-id 'nixd)))
|
||||||
|
|
||||||
|
;; obsidian
|
||||||
|
(use-package obsidian
|
||||||
|
:config
|
||||||
|
(global-obsidian-mode t)
|
||||||
|
:custom
|
||||||
|
(obsidian-directory "~/Documents/Notes")
|
||||||
|
(markdown-enable-wiki-links t))
|
||||||
|
|
||||||
|
;; web-mode
|
||||||
|
(add-to-list 'auto-mode-alist '("\\.njk" . web-mode))
|
@ -1,12 +1,11 @@
|
|||||||
;;; init.el -*- lexical-binding: t; -*-
|
;;; init.el -*- lexical-binding: t; -*-
|
||||||
;;;
|
|
||||||
|
|
||||||
;; This file controls what Doom modules are enabled and what order they load
|
;; This file controls what Doom modules are enabled and what order they load
|
||||||
;; in. Remember to run 'doom sync' after modifying it!
|
;; in. Remember to run 'doom sync' after modifying it!
|
||||||
|
|
||||||
;; NOTE Press 'SPC h d h' (or 'C-h d h' for non-vim users) to access Doom's
|
;; NOTE Press 'SPC h d h' (or 'C-h d h' for non-vim users) to access Doom's
|
||||||
;; documentation. There you'll find a "Module Index" link where you'll find
|
;; documentation. There you'll find a link to Doom's Module Index where all
|
||||||
;; a comprehensive list of Doom's modules and what flags they support.
|
;; of our modules are listed, including what flags they support.
|
||||||
|
|
||||||
;; NOTE Move your cursor over a module's name (or its flags) and press 'K' (or
|
;; NOTE Move your cursor over a module's name (or its flags) and press 'K' (or
|
||||||
;; 'C-c c k' for non-vim users) to view its documentation. This works on
|
;; 'C-c c k' for non-vim users) to view its documentation. This works on
|
||||||
@ -16,25 +15,26 @@
|
|||||||
;; directory (for easy access to its source code).
|
;; directory (for easy access to its source code).
|
||||||
|
|
||||||
(doom! :input
|
(doom! :input
|
||||||
|
;;bidi ; (tfel ot) thgir etirw uoy gnipleh
|
||||||
;;chinese
|
;;chinese
|
||||||
;;japanese
|
;;japanese
|
||||||
;;layout ; auie,ctsrnm is the superior home row
|
;;layout ; auie,ctsrnm is the superior home row
|
||||||
|
|
||||||
:completion
|
:completion
|
||||||
company ; the ultimate code completion backend
|
;; company ; the ultimate code completion backend
|
||||||
|
(corfu +orderless) ; complete with cap(f), cape and a flying feather!
|
||||||
;;helm ; the *other* search engine for love and life
|
;;helm ; the *other* search engine for love and life
|
||||||
;;ido ; the other *other* search engine...
|
;;ido ; the other *other* search engine...
|
||||||
ivy ; a search engine for love and life
|
;;ivy ; a search engine for love and life
|
||||||
|
vertico ; the search engine of the future
|
||||||
|
|
||||||
:ui
|
:ui
|
||||||
deft ; notational velocity for Emacs
|
;;deft ; notational velocity for Emacs
|
||||||
doom ; what makes DOOM look the way it does
|
doom ; what makes DOOM look the way it does
|
||||||
doom-dashboard ; a nifty splash screen for Emacs
|
doom-dashboard ; a nifty splash screen for Emacs
|
||||||
doom-quit ; DOOM quit-message prompts when you quit Emacs
|
doom-quit ; DOOM quit-message prompts when you quit Emacs
|
||||||
(emoji +unicode) ; 🙂
|
(emoji +unicode) ; 🙂
|
||||||
fill-column ; a `fill-column' indicator
|
|
||||||
hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW
|
hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW
|
||||||
;;hydra
|
|
||||||
;;indent-guides ; highlighted indent columns
|
;;indent-guides ; highlighted indent columns
|
||||||
ligatures ; ligatures and symbols to make your code pretty again
|
ligatures ; ligatures and symbols to make your code pretty again
|
||||||
minimap ; show a map of the code on the side
|
minimap ; show a map of the code on the side
|
||||||
@ -46,14 +46,14 @@
|
|||||||
;;tabs ; a tab bar for Emacs
|
;;tabs ; a tab bar for Emacs
|
||||||
treemacs ; a project drawer, like neotree but cooler
|
treemacs ; a project drawer, like neotree but cooler
|
||||||
unicode ; extended unicode support for various languages
|
unicode ; extended unicode support for various languages
|
||||||
vc-gutter ; vcs diff in the fringe
|
(vc-gutter +pretty) ; vcs diff in the fringe
|
||||||
vi-tilde-fringe ; fringe tildes to mark beyond EOB
|
vi-tilde-fringe ; fringe tildes to mark beyond EOB
|
||||||
;;window-select ; visually switch windows
|
;;window-select ; visually switch windows
|
||||||
workspaces ; tab emulation, persistence & separate workspaces
|
workspaces ; tab emulation, persistence & separate workspaces
|
||||||
;;zen ; distraction-free coding or writing
|
;;zen ; distraction-free coding or writing
|
||||||
|
|
||||||
:editor
|
:editor
|
||||||
(evil +everywhere) ; come to the dark side, we have cookies
|
(evil +everywhere); come to the dark side, we have cookies
|
||||||
file-templates ; auto-snippets for empty files
|
file-templates ; auto-snippets for empty files
|
||||||
fold ; (nigh) universal code folding
|
fold ; (nigh) universal code folding
|
||||||
(format +onsave) ; automated prettiness
|
(format +onsave) ; automated prettiness
|
||||||
@ -69,6 +69,7 @@
|
|||||||
:emacs
|
:emacs
|
||||||
dired ; making dired pretty [functional]
|
dired ; making dired pretty [functional]
|
||||||
electric ; smarter, keyword-based electric-indent
|
electric ; smarter, keyword-based electric-indent
|
||||||
|
;;eww ; the internet is gross
|
||||||
;;ibuffer ; interactive buffer management
|
;;ibuffer ; interactive buffer management
|
||||||
undo ; persistent, smarter undo for your inevitable mistakes
|
undo ; persistent, smarter undo for your inevitable mistakes
|
||||||
vc ; version-control and Emacs, sitting in a tree
|
vc ; version-control and Emacs, sitting in a tree
|
||||||
@ -81,38 +82,40 @@
|
|||||||
|
|
||||||
:checkers
|
:checkers
|
||||||
syntax ; tasing you for every semicolon you forget
|
syntax ; tasing you for every semicolon you forget
|
||||||
;;spell ; tasing you for misspelling mispelling
|
;;(spell +flyspell) ; tasing you for misspelling mispelling
|
||||||
;;grammar ; tasing grammar mistake every you make
|
;;grammar ; tasing grammar mistake every you make
|
||||||
|
|
||||||
:tools
|
:tools
|
||||||
;;ansible
|
;;ansible
|
||||||
|
;;biblio ; Writes a PhD for you (citation needed)
|
||||||
|
;;collab ; buffers with friends
|
||||||
;;debugger ; FIXME stepping through code, to help you add bugs
|
;;debugger ; FIXME stepping through code, to help you add bugs
|
||||||
direnv
|
direnv
|
||||||
docker
|
docker
|
||||||
;;editorconfig ; let someone else argue about tabs vs spaces
|
;;editorconfig ; let someone else argue about tabs vs spaces
|
||||||
;;ein ; tame Jupyter notebooks with emacs
|
;;ein ; tame Jupyter notebooks with emacs
|
||||||
(eval +overlay) ; run code, run (also, repls)
|
(eval +overlay) ; run code, run (also, repls)
|
||||||
gist ; interacting with github gists
|
|
||||||
lookup ; navigate your code and its documentation
|
lookup ; navigate your code and its documentation
|
||||||
lsp
|
llm ; when I said you needed friends, I didn't mean...
|
||||||
|
lsp ; M-x vscode
|
||||||
magit ; a git porcelain for Emacs
|
magit ; a git porcelain for Emacs
|
||||||
make ; run make tasks from Emacs
|
;;make ; run make tasks from Emacs
|
||||||
;;pass ; password manager for nerds
|
;;pass ; password manager for nerds
|
||||||
;;pdf ; pdf enhancements
|
;;pdf ; pdf enhancements
|
||||||
;;prodigy ; FIXME managing external services & code builders
|
;;prodigy ; FIXME managing external services & code builders
|
||||||
;;rgb ; creating color strings
|
terraform ; infrastructure as code
|
||||||
;;taskrunner ; taskrunner for all your projects
|
|
||||||
;;terraform ; infrastructure as code
|
|
||||||
;;tmux ; an API for interacting with tmux
|
;;tmux ; an API for interacting with tmux
|
||||||
|
tree-sitter ; syntax and parsing, sitting in a tree...
|
||||||
;;upload ; map local to remote projects via ssh/ftp
|
;;upload ; map local to remote projects via ssh/ftp
|
||||||
|
|
||||||
:os
|
:os
|
||||||
(:if IS-MAC macos) ; improve compatibility with macOS
|
(:if (featurep :system 'macos) macos) ; improve compatibility with macOS
|
||||||
;;tty ; improve the terminal Emacs experience
|
;;tty ; improve the terminal Emacs experience
|
||||||
|
|
||||||
:lang
|
:lang
|
||||||
;;agda ; types of types of types of types...
|
;;agda ; types of types of types of types...
|
||||||
;;cc ; C/C++/Obj-C madness
|
;;beancount ; mind the GAAP
|
||||||
|
;;(cc +lsp) ; C > C++ == 1
|
||||||
;;clojure ; java with a lisp
|
;;clojure ; java with a lisp
|
||||||
;;common-lisp ; if you've seen one lisp, you've seen them all
|
;;common-lisp ; if you've seen one lisp, you've seen them all
|
||||||
;;coq ; proofs-as-programs
|
;;coq ; proofs-as-programs
|
||||||
@ -120,7 +123,7 @@
|
|||||||
;;csharp ; unity, .NET, and mono shenanigans
|
;;csharp ; unity, .NET, and mono shenanigans
|
||||||
;;data ; config/data formats
|
;;data ; config/data formats
|
||||||
;;(dart +flutter) ; paint ui and not much else
|
;;(dart +flutter) ; paint ui and not much else
|
||||||
(elixir +lsp) ; erlang done right
|
(elixir +lsp +tree-sitter) ; erlang done right
|
||||||
(elm +lsp) ; care for a cup of TEA?
|
(elm +lsp) ; care for a cup of TEA?
|
||||||
emacs-lisp ; drown in parentheses
|
emacs-lisp ; drown in parentheses
|
||||||
;;erlang ; an elegant language for a more civilized age
|
;;erlang ; an elegant language for a more civilized age
|
||||||
@ -129,13 +132,14 @@
|
|||||||
;;fsharp ; ML stands for Microsoft's Language
|
;;fsharp ; ML stands for Microsoft's Language
|
||||||
;;fstar ; (dependent) types and (monadic) effects and Z3
|
;;fstar ; (dependent) types and (monadic) effects and Z3
|
||||||
;;gdscript ; the language you waited for
|
;;gdscript ; the language you waited for
|
||||||
(go +lsp) ; the hipster dialect
|
(graphql +lsp) ; Give queries a REST
|
||||||
|
(go +lsp +tree-sitter) ; the hipster dialect
|
||||||
(haskell +lsp) ; a language that's lazier than I am
|
(haskell +lsp) ; a language that's lazier than I am
|
||||||
;;hy ; readability of scheme w/ speed of python
|
;;hy ; readability of scheme w/ speed of python
|
||||||
;;idris ; a language you can depend on
|
;;idris ; a language you can depend on
|
||||||
json ; At least it ain't XML
|
json ; At least it ain't XML
|
||||||
;;(java +meghanada) ; the poster child for carpal tunnel syndrome
|
;;(java +meghanada) ; the poster child for carpal tunnel syndrome
|
||||||
javascript ; all(hope(abandon(ye(who(enter(here))))))
|
(javascript +lsp +tree-sitter) ; all(hope(abandon(ye(who(enter(here))))))
|
||||||
;;julia ; a better, faster MATLAB
|
;;julia ; a better, faster MATLAB
|
||||||
;;kotlin ; a better, slicker Java(Script)
|
;;kotlin ; a better, slicker Java(Script)
|
||||||
;;latex ; writing papers in Emacs has never been so fun
|
;;latex ; writing papers in Emacs has never been so fun
|
||||||
@ -145,7 +149,7 @@
|
|||||||
;;lua ; one-based indices? one-based indices
|
;;lua ; one-based indices? one-based indices
|
||||||
markdown ; writing docs for people to ignore
|
markdown ; writing docs for people to ignore
|
||||||
;;nim ; python + lisp at the speed of c
|
;;nim ; python + lisp at the speed of c
|
||||||
nix ; I hereby declare "nix geht mehr!"
|
(nix +lsp +tree-sitter) ; I hereby declare "nix geht mehr!"
|
||||||
;;ocaml ; an objective camel
|
;;ocaml ; an objective camel
|
||||||
;;(org +roam) ; organize your plain life in plain text
|
;;(org +roam) ; organize your plain life in plain text
|
||||||
;;php ; perl's insecure younger brother
|
;;php ; perl's insecure younger brother
|
||||||
@ -158,7 +162,7 @@
|
|||||||
rest ; Emacs as a REST client
|
rest ; Emacs as a REST client
|
||||||
;;rst ; ReST in peace
|
;;rst ; ReST in peace
|
||||||
(ruby +rails +lsp) ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"}
|
(ruby +rails +lsp) ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"}
|
||||||
(rust +lsp) ; Fe2O3.unwrap().unwrap().unwrap().unwrap()
|
(rust +lsp +tree-sitter) ; Fe2O3.unwrap().unwrap().unwrap().unwrap()
|
||||||
;;scala ; java, but good
|
;;scala ; java, but good
|
||||||
;;scheme ; a fully conniving family of lisps
|
;;scheme ; a fully conniving family of lisps
|
||||||
sh ; she sells {ba,z,fi}sh shells on the C xor
|
sh ; she sells {ba,z,fi}sh shells on the C xor
|
||||||
@ -166,7 +170,7 @@
|
|||||||
;;solidity ; do you need a blockchain? No.
|
;;solidity ; do you need a blockchain? No.
|
||||||
;;swift ; who asked for emoji variables?
|
;;swift ; who asked for emoji variables?
|
||||||
;;terra ; Earth and Moon in alignment for performance.
|
;;terra ; Earth and Moon in alignment for performance.
|
||||||
web ; the tubes
|
(web +lsp +tree-sitter) ; the tubes
|
||||||
yaml ; JSON, but readable
|
yaml ; JSON, but readable
|
||||||
|
|
||||||
:email
|
:email
|
||||||
@ -184,5 +188,5 @@
|
|||||||
;;literate
|
;;literate
|
||||||
(default +bindings +smartparens))
|
(default +bindings +smartparens))
|
||||||
|
|
||||||
(when noninteractive
|
(after! doom-cli-env
|
||||||
(add-to-list 'doom-env-whitelist "^SSH_"))
|
(add-to-list 'doom-env-allow "^SSH_"))
|
@ -3,51 +3,50 @@
|
|||||||
|
|
||||||
;; To install a package with Doom you must declare them here and run 'doom sync'
|
;; To install a package with Doom you must declare them here and run 'doom sync'
|
||||||
;; on the command line, then restart Emacs for the changes to take effect -- or
|
;; on the command line, then restart Emacs for the changes to take effect -- or
|
||||||
;; use 'M-x doom/reload'.
|
|
||||||
|
|
||||||
|
|
||||||
;; To install SOME-PACKAGE from MELPA, ELPA or emacsmirror:
|
;; To install SOME-PACKAGE from MELPA, ELPA or emacsmirror:
|
||||||
;(package! some-package)
|
;; (package! some-package)
|
||||||
|
|
||||||
|
(package! obsidian)
|
||||||
(package! wakatime-mode)
|
(package! wakatime-mode)
|
||||||
(package! pinentry)
|
|
||||||
|
|
||||||
;; To install a package directly from a remote git repo, you must specify a
|
;; To install a package directly from a remote git repo, you must specify a
|
||||||
;; `:recipe'. You'll find documentation on what `:recipe' accepts here:
|
;; `:recipe'. You'll find documentation on what `:recipe' accepts here:
|
||||||
;; https://github.com/raxod502/straight.el#the-recipe-format
|
;; https://github.com/radian-software/straight.el#the-recipe-format
|
||||||
;(package! another-package
|
;; (package! another-package
|
||||||
; :recipe (:host github :repo "username/repo"))
|
;; :recipe (:host github :repo "username/repo"))
|
||||||
|
|
||||||
;; If the package you are trying to install does not contain a PACKAGENAME.el
|
;; If the package you are trying to install does not contain a PACKAGENAME.el
|
||||||
;; file, or is located in a subdirectory of the repo, you'll need to specify
|
;; file, or is located in a subdirectory of the repo, you'll need to specify
|
||||||
;; `:files' in the `:recipe':
|
;; `:files' in the `:recipe':
|
||||||
;(package! this-package
|
;; (package! this-package
|
||||||
; :recipe (:host github :repo "username/repo"
|
;; :recipe (:host github :repo "username/repo"
|
||||||
; :files ("some-file.el" "src/lisp/*.el")))
|
;; :files ("some-file.el" "src/lisp/*.el")))
|
||||||
|
|
||||||
;; If you'd like to disable a package included with Doom, you can do so here
|
;; If you'd like to disable a package included with Doom, you can do so here
|
||||||
;; with the `:disable' property:
|
;; with the `:disable' property:
|
||||||
;(package! builtin-package :disable t)
|
;; (package! builtin-package :disable t)
|
||||||
|
|
||||||
;; You can override the recipe of a built in package without having to specify
|
;; You can override the recipe of a built in package without having to specify
|
||||||
;; all the properties for `:recipe'. These will inherit the rest of its recipe
|
;; all the properties for `:recipe'. These will inherit the rest of its recipe
|
||||||
;; from Doom or MELPA/ELPA/Emacsmirror:
|
;; from Doom or MELPA/ELPA/Emacsmirror:
|
||||||
;(package! builtin-package :recipe (:nonrecursive t))
|
;; (package! builtin-package :recipe (:nonrecursive t))
|
||||||
;(package! builtin-package-2 :recipe (:repo "myfork/package"))
|
;; (package! builtin-package-2 :recipe (:repo "myfork/package"))
|
||||||
|
|
||||||
;; Specify a `:branch' to install a package from a particular branch or tag.
|
;; Specify a `:branch' to install a package from a particular branch or tag.
|
||||||
;; This is required for some packages whose default branch isn't 'master' (which
|
;; This is required for some packages whose default branch isn't 'master' (which
|
||||||
;; our package manager can't deal with; see raxod502/straight.el#279)
|
;; our package manager can't deal with; see radian-software/straight.el#279)
|
||||||
;(package! builtin-package :recipe (:branch "develop"))
|
;; (package! builtin-package :recipe (:branch "develop"))
|
||||||
|
|
||||||
;; Use `:pin' to specify a particular commit to install.
|
;; Use `:pin' to specify a particular commit to install.
|
||||||
;(package! builtin-package :pin "1a2b3c4d5e")
|
;; (package! builtin-package :pin "1a2b3c4d5e")
|
||||||
|
|
||||||
|
|
||||||
;; Doom's packages are pinned to a specific commit and updated from release to
|
;; Doom's packages are pinned to a specific commit and updated from release to
|
||||||
;; release. The `unpin!' macro allows you to unpin single packages...
|
;; release. The `unpin!' macro allows you to unpin single packages...
|
||||||
;(unpin! pinned-package)
|
;; (unpin! pinned-package)
|
||||||
;; ...or multiple packages
|
;; ...or multiple packages
|
||||||
;(unpin! pinned-package another-pinned-package)
|
;; (unpin! pinned-package another-pinned-package)
|
||||||
;; ...Or *all* packages (NOT RECOMMENDED; will likely break things)
|
;; ...Or *all* packages (NOT RECOMMENDED; will likely break things)
|
||||||
;(unpin! t)
|
;; (unpin! t)
|
29
chezmoi/dot_config/ghostty/config
Normal file
29
chezmoi/dot_config/ghostty/config
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
font-family = "JetBrainsMono Nerd Font Mono"
|
||||||
|
font-size = 14
|
||||||
|
|
||||||
|
background-opacity = 1.0
|
||||||
|
|
||||||
|
palette = 0=#21222c
|
||||||
|
palette = 1=#ff5555
|
||||||
|
palette = 2=#50fa7b
|
||||||
|
palette = 3=#f1fa8c
|
||||||
|
palette = 4=#bd93f9
|
||||||
|
palette = 5=#ff79c6
|
||||||
|
palette = 6=#8be9fd
|
||||||
|
palette = 7=#f8f8f2
|
||||||
|
palette = 8=#6272a4
|
||||||
|
palette = 9=#ff6e6e
|
||||||
|
palette = 10=#69ff94
|
||||||
|
palette = 11=#ffffa5
|
||||||
|
palette = 12=#d6acff
|
||||||
|
palette = 13=#ff92df
|
||||||
|
palette = 14=#a4ffff
|
||||||
|
palette = 15=#ffffff
|
||||||
|
|
||||||
|
background = 282a36
|
||||||
|
foreground = f8f8f2
|
||||||
|
cursor-color = f8f8f2
|
||||||
|
selection-background = 44475a
|
||||||
|
selection-foreground = f8f8f2
|
||||||
|
|
||||||
|
keybind = global:ctrl+escape=toggle_quick_terminal
|
50
chezmoi/dot_config/git/config
Normal file
50
chezmoi/dot_config/git/config
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
[alias]
|
||||||
|
lg = "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
|
||||||
|
st = "status -s"
|
||||||
|
undo = "reset HEAD~1 --mixed"
|
||||||
|
smu = "submodule update --init --recursive"
|
||||||
|
ignore = "!gi() { curl -L -s https://www.gitignore.io/api/$@ ;}; gi"
|
||||||
|
up = "pull --rebase --autostash"
|
||||||
|
cleanup = "!git branch -vv|grep ': gone]'|awk '{print $1}'|xargs git branch -D"
|
||||||
|
|
||||||
|
[commit]
|
||||||
|
gpgsign = true
|
||||||
|
|
||||||
|
[diff]
|
||||||
|
algorithm = histogram
|
||||||
|
colorMoved = plain
|
||||||
|
mnemonicPrefix = true
|
||||||
|
renames = true
|
||||||
|
|
||||||
|
[fetch]
|
||||||
|
prune = true
|
||||||
|
pruneTags = true
|
||||||
|
all = true
|
||||||
|
|
||||||
|
[github]
|
||||||
|
user = "walkah"
|
||||||
|
|
||||||
|
[gpg]
|
||||||
|
format = "ssh"
|
||||||
|
|
||||||
|
[gpg "ssh"]
|
||||||
|
allowedSignersFile = "~/.ssh/allowed_signers"
|
||||||
|
|
||||||
|
[init]
|
||||||
|
defaultBranch = "main"
|
||||||
|
|
||||||
|
[pull]
|
||||||
|
rebase = true
|
||||||
|
|
||||||
|
[push]
|
||||||
|
default = simple
|
||||||
|
autoSetupRemote = true
|
||||||
|
followTags = true
|
||||||
|
|
||||||
|
[rebase]
|
||||||
|
autoStash = true
|
||||||
|
|
||||||
|
[user]
|
||||||
|
email = "walkah@walkah.net"
|
||||||
|
name = "James Walker"
|
||||||
|
signingkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOxgkaPcUYkMjk7SEBFrYpJ2mGK+8iPgLYwV+XpNp5Nl"
|
@ -13,5 +13,8 @@ disabled=true
|
|||||||
ssh_only = false
|
ssh_only = false
|
||||||
format = "[$hostname]($style):"
|
format = "[$hostname]($style):"
|
||||||
|
|
||||||
|
[kubernetes]
|
||||||
|
disabled = false
|
||||||
|
|
||||||
[username]
|
[username]
|
||||||
format = "[$user]($style)@"
|
format = "[$user]($style)@"
|
19
chezmoi/dot_config/tmux/tmux.conf
Normal file
19
chezmoi/dot_config/tmux/tmux.conf
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
unbind C-b
|
||||||
|
set -g prefix C-o
|
||||||
|
|
||||||
|
set -g mouse on
|
||||||
|
set -g set-titles on
|
||||||
|
set -g set-titles-string "[#S] #W@#h (#I)"
|
||||||
|
|
||||||
|
bind-key X kill-session
|
||||||
|
|
||||||
|
set -g @plugin 'tmux-plugins/tpm'
|
||||||
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||||
|
set -g @plugin 'dracula/tmux'
|
||||||
|
|
||||||
|
# dracula: https://draculatheme.com/tmux
|
||||||
|
set -g @dracula-plugins "network battery ssh-session"
|
||||||
|
set -g @dracula-show-left-icon session
|
||||||
|
set -g @dracula-show-powerline true
|
||||||
|
|
||||||
|
run '~/.config/tmux/plugins/tpm/tpm'
|
37
chezmoi/dot_config/zed/private_settings.json
Normal file
37
chezmoi/dot_config/zed/private_settings.json
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
// Zed settings
|
||||||
|
//
|
||||||
|
// For information on how to configure Zed, see the Zed
|
||||||
|
// documentation: https://zed.dev/docs/configuring-zed
|
||||||
|
//
|
||||||
|
// To see all of Zed's default settings without changing your
|
||||||
|
// custom settings, run the `open default settings` command
|
||||||
|
// from the command palette or from `Zed` application menu.
|
||||||
|
{
|
||||||
|
"features": {
|
||||||
|
"edit_prediction_provider": "zed"
|
||||||
|
},
|
||||||
|
"agent": {
|
||||||
|
"default_model": {
|
||||||
|
"provider": "copilot_chat",
|
||||||
|
"model": "claude-3-7-sonnet"
|
||||||
|
},
|
||||||
|
"version": "2"
|
||||||
|
},
|
||||||
|
"auto_install_extensions": {
|
||||||
|
"dockerfile": true,
|
||||||
|
"docker-compose": true,
|
||||||
|
"dracula": true,
|
||||||
|
"html": true,
|
||||||
|
"nix": true,
|
||||||
|
"terraform": true
|
||||||
|
},
|
||||||
|
"theme": "Dracula",
|
||||||
|
"buffer_font_family": "JetBrainsMono Nerd Font",
|
||||||
|
"buffer_font_size": 14,
|
||||||
|
"format_on_save": "on",
|
||||||
|
"languages": {
|
||||||
|
"Nix": {
|
||||||
|
"language_servers": ["nixd", "!nil"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
1
chezmoi/dot_npmrc
Normal file
1
chezmoi/dot_npmrc
Normal file
@ -0,0 +1 @@
|
|||||||
|
prefix = ${HOME}/.local
|
6
chezmoi/dot_zshenv
Normal file
6
chezmoi/dot_zshenv
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
export EDITOR="vim"
|
||||||
|
export GOPATH="$HOME/.go"
|
||||||
|
|
||||||
|
export PATH="$PATH${PATH:+:}$HOME/.cargo/bin:$HOME/.deno/bin:$HOME/.config/emacs/bin:$HOME/.go/bin:$HOME/.local/bin"
|
||||||
|
|
||||||
|
|
47
chezmoi/dot_zshrc
Normal file
47
chezmoi/dot_zshrc
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
# Path to your oh-my-zsh configuration.
|
||||||
|
export ZSH=$HOME/.oh-my-zsh
|
||||||
|
|
||||||
|
plugins=(
|
||||||
|
asdf
|
||||||
|
aws
|
||||||
|
bgnotify
|
||||||
|
command-not-found
|
||||||
|
direnv
|
||||||
|
docker
|
||||||
|
docker-compose
|
||||||
|
eza
|
||||||
|
extract
|
||||||
|
gcloud
|
||||||
|
git
|
||||||
|
github
|
||||||
|
mix
|
||||||
|
python
|
||||||
|
tmux
|
||||||
|
zsh-autosuggestions
|
||||||
|
)
|
||||||
|
|
||||||
|
# asdf config
|
||||||
|
export ASDF_GOLANG_MOD_VERSION_ENABLED=true
|
||||||
|
export ASDF_NODEJS_LEGACY_FILE_DYNAMIC_STRATEGY=latest_installed
|
||||||
|
|
||||||
|
# eza plugin config
|
||||||
|
zstyle ':omz:plugins:eza' 'git-status' yes
|
||||||
|
zstyle ':omz:plugins:eza' 'header' yes
|
||||||
|
|
||||||
|
# python plugin config
|
||||||
|
export PYTHON_AUTO_VRUN=true
|
||||||
|
|
||||||
|
# OH MY ZSH!
|
||||||
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
|
# Load starship
|
||||||
|
eval "$(starship init zsh)"
|
||||||
|
|
||||||
|
# Aliases
|
||||||
|
if command -v bat &> /dev/null; then
|
||||||
|
alias -- cat=bat
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -n $GHOSTTY_RESOURCES_DIR ]]; then
|
||||||
|
source "$GHOSTTY_RESOURCES_DIR"/shell-integration/zsh/ghostty-integration
|
||||||
|
fi
|
1
chezmoi/private_dot_ssh/allowed_signers
Normal file
1
chezmoi/private_dot_ssh/allowed_signers
Normal file
@ -0,0 +1 @@
|
|||||||
|
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ0mE4MyMnfd1b2nlBJT7kpZ6Vov+ILuGNfzdp5ZBNQe
|
@ -1,45 +0,0 @@
|
|||||||
# ~/.Brewfile
|
|
||||||
|
|
||||||
# taps
|
|
||||||
tap 'homebrew/cask-drivers'
|
|
||||||
tap 'homebrew/cask-fonts'
|
|
||||||
|
|
||||||
# brews
|
|
||||||
brew 'coreutils'
|
|
||||||
brew 'mas'
|
|
||||||
|
|
||||||
# casks
|
|
||||||
cask '1password'
|
|
||||||
cask 'alfred'
|
|
||||||
cask 'brave-browser'
|
|
||||||
cask 'dash'
|
|
||||||
cask 'discord'
|
|
||||||
cask 'docker'
|
|
||||||
cask 'fantastical'
|
|
||||||
cask 'figma'
|
|
||||||
cask 'firefox'
|
|
||||||
cask 'font-jetbrains-mono'
|
|
||||||
cask 'google-chrome'
|
|
||||||
cask 'hazel'
|
|
||||||
cask 'iterm2'
|
|
||||||
cask 'keybase'
|
|
||||||
cask 'microsoft-edge'
|
|
||||||
cask 'slack'
|
|
||||||
cask 'sonos'
|
|
||||||
cask 'spotify'
|
|
||||||
cask 'stats'
|
|
||||||
cask 'syncthing'
|
|
||||||
cask 'synology-drive'
|
|
||||||
cask 'visual-studio-code'
|
|
||||||
cask 'zoomus'
|
|
||||||
|
|
||||||
# mac app store
|
|
||||||
mas 'Bumpr', id: 1166066070
|
|
||||||
mas 'Day One', id: 1055511498
|
|
||||||
mas 'Drafts', id: 1435957248
|
|
||||||
mas 'Magnet', id: 441258766
|
|
||||||
mas 'Parcel', id: 639968404
|
|
||||||
mas 'Reeder', id: 1529448980
|
|
||||||
mas 'Todoist', id: 585829637
|
|
||||||
mas 'UlyssesMac', id: 1225570693
|
|
||||||
mas 'Xcode', id: 497799835
|
|
@ -1,31 +0,0 @@
|
|||||||
[user]
|
|
||||||
name = James Walker
|
|
||||||
email = walkah@walkah.net
|
|
||||||
signingkey = 4D47A81C
|
|
||||||
[color]
|
|
||||||
diff = auto
|
|
||||||
status = auto
|
|
||||||
branch = auto
|
|
||||||
ui = auto
|
|
||||||
[alias]
|
|
||||||
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
|
|
||||||
st = status -s
|
|
||||||
smu = submodule update --init --recursive
|
|
||||||
ignore = "!gi() { curl -L -s https://www.gitignore.io/api/$@ ;}; gi"
|
|
||||||
up = pull --rebase --autostash
|
|
||||||
cleanup = "!git branch --merged | grep -v '\\*\\|master\\|develop' | xargs -n 1 git branch -d"
|
|
||||||
[github]
|
|
||||||
user = walkah
|
|
||||||
[git-up "bundler"]
|
|
||||||
check = true
|
|
||||||
autoinstall = true
|
|
||||||
[filter "lfs"]
|
|
||||||
clean = git lfs clean %f
|
|
||||||
smudge = git lfs smudge %f
|
|
||||||
required = true
|
|
||||||
[commit]
|
|
||||||
gpgsign = true
|
|
||||||
[pull]
|
|
||||||
rebase = false
|
|
||||||
[init]
|
|
||||||
defaultBranch = main
|
|
@ -1,16 +0,0 @@
|
|||||||
unbind C-b
|
|
||||||
set -g prefix C-o
|
|
||||||
|
|
||||||
set -g set-titles on
|
|
||||||
set -g set-titles-string "[#S] #W@#h (#I)"
|
|
||||||
set -g status-right ""
|
|
||||||
set -g default-terminal "screen-256color"
|
|
||||||
|
|
||||||
set-option -g status-left-length 60
|
|
||||||
|
|
||||||
set -g status-bg black
|
|
||||||
set -g status-fg white
|
|
||||||
|
|
||||||
bind-key X kill-session
|
|
||||||
|
|
||||||
#set-option -g default-command "reattach-to-user-namespace -l zsh"
|
|
@ -1,45 +0,0 @@
|
|||||||
"
|
|
||||||
" walkah's vimrc (vim 6)
|
|
||||||
"
|
|
||||||
" $Id: .vimrc,v 1.2 2005-11-08 20:17:32 walkah Exp $
|
|
||||||
|
|
||||||
" no compatible
|
|
||||||
set nocp
|
|
||||||
|
|
||||||
" don't wrap lines
|
|
||||||
set nowrap
|
|
||||||
|
|
||||||
" don't keep backups
|
|
||||||
set nobackup
|
|
||||||
|
|
||||||
" visual bell
|
|
||||||
set visualbell
|
|
||||||
|
|
||||||
set laststatus=2
|
|
||||||
|
|
||||||
" indenting stuff
|
|
||||||
set expandtab
|
|
||||||
set tabstop=2
|
|
||||||
set shiftwidth=2
|
|
||||||
set smarttab
|
|
||||||
set autoindent
|
|
||||||
set smartindent
|
|
||||||
|
|
||||||
set title
|
|
||||||
|
|
||||||
" folding
|
|
||||||
set foldmethod=marker
|
|
||||||
|
|
||||||
" search
|
|
||||||
set nohlsearch
|
|
||||||
set incsearch
|
|
||||||
set ignorecase
|
|
||||||
|
|
||||||
set showmatch
|
|
||||||
|
|
||||||
" syntax hilighting
|
|
||||||
syntax on
|
|
||||||
|
|
||||||
" mappings
|
|
||||||
map <PageUp> <C-B>
|
|
||||||
map <PageDown> <C-F>
|
|
@ -1,25 +0,0 @@
|
|||||||
# ignore system zsh
|
|
||||||
IGNORE_SYSTEM_ZSH=1
|
|
||||||
|
|
||||||
|
|
||||||
# unique path... and put my stuff first
|
|
||||||
typeset -U path
|
|
||||||
path=(~/bin ~/local/bin ~/local/sbin /usr/local/bin /usr/local/sbin /usr/bin /usr/X11R6/bin /bin /usr/sbin /sbin /usr/games)
|
|
||||||
|
|
||||||
### environment
|
|
||||||
export PAGER=less
|
|
||||||
export RSYNC_RSH=ssh
|
|
||||||
export CVS_RSH=ssh
|
|
||||||
#export CVSROOT=/home/cvs
|
|
||||||
|
|
||||||
[ -f $HOME/.environment ] && . $HOME/.environment
|
|
||||||
|
|
||||||
# Load asdf
|
|
||||||
if command -v brew &> /dev/null; then
|
|
||||||
. $(brew --prefix asdf)/asdf.sh
|
|
||||||
else
|
|
||||||
. ~/.asdf/asdf.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
[ -e $HOME/.nix-profile/etc/profile.d/nix.sh ] && . $HOME/.nix-profile/etc/profile.d/nix.sh
|
|
||||||
|
|
@ -1,69 +0,0 @@
|
|||||||
# Path to your oh-my-zsh configuration.
|
|
||||||
export ZSH=$HOME/.oh-my-zsh
|
|
||||||
|
|
||||||
# Set to the name theme to load.
|
|
||||||
# Look in ~/.oh-my-zsh/themes/
|
|
||||||
# export ZSH_THEME="walkah"
|
|
||||||
|
|
||||||
# My custom directory
|
|
||||||
export ZSH_CUSTOM=$HOME/.zsh/custom
|
|
||||||
|
|
||||||
# Set to this to use case-sensitive completion
|
|
||||||
# export CASE_SENSITIVE="true"
|
|
||||||
|
|
||||||
# Comment this out to disable weekly auto-update checks
|
|
||||||
# export DISABLE_AUTO_UPDATE="true"
|
|
||||||
|
|
||||||
# Uncomment following line if you want to disable colors in ls
|
|
||||||
# export DISABLE_LS_COLORS="true"
|
|
||||||
|
|
||||||
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
|
|
||||||
# Example format: plugins=(rails git textmate ruby lighthouse)
|
|
||||||
plugins=(asdf direnv aws gcloud extract command-not-found tmux git github ssh-agent docker docker-compose mix)
|
|
||||||
|
|
||||||
# ruby
|
|
||||||
if [ -x ruby ]; then
|
|
||||||
plugins=($plugins ruby gem rails bundler heroku)
|
|
||||||
fi
|
|
||||||
|
|
||||||
# node
|
|
||||||
plugins=($plugins npm yarn react-native)
|
|
||||||
|
|
||||||
# python
|
|
||||||
plugins=($plugins pip pipenv)
|
|
||||||
|
|
||||||
# Platform specific settings
|
|
||||||
case "$OSTYPE" in
|
|
||||||
darwin*)
|
|
||||||
plugins=($plugins osx)
|
|
||||||
;;
|
|
||||||
linux*)
|
|
||||||
plugins=($plugins debian)
|
|
||||||
export PATH=/snap/bin:$PATH
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# OH MY ZSH!
|
|
||||||
source $ZSH/oh-my-zsh.sh
|
|
||||||
|
|
||||||
# Android Studio
|
|
||||||
if [ -d ~/Library/Android/sdk ]; then
|
|
||||||
export ANDROID_SDK=~/Library/Android/sdk
|
|
||||||
export PATH=~/Library/Android/sdk/platform-tools:$PATH
|
|
||||||
fi
|
|
||||||
|
|
||||||
# zsh autosuggestions
|
|
||||||
if command -v brew &> /dev/null; then
|
|
||||||
zsh_autosuggestions=$(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
|
||||||
if [ -f $zsh_autosuggestions ]; then
|
|
||||||
source $zsh_autosuggestions
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ $TERM = "screen" ]; then
|
|
||||||
export DISABLE_AUTO_TITLE="true"
|
|
||||||
fi
|
|
||||||
export EDITOR="vim"
|
|
||||||
export LSCOLORS="ExGxFxdxCxDxDxhbadExEx"
|
|
||||||
|
|
||||||
eval "$(starship init zsh)"
|
|
@ -1,47 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
function install_latest() {
|
|
||||||
version=$(asdf list-all $1 | grep -v '[a-z]' | tail -1)
|
|
||||||
asdf install $1 $version
|
|
||||||
asdf global $1 $version
|
|
||||||
}
|
|
||||||
|
|
||||||
echo "* Updating homesick..."
|
|
||||||
homesick pull
|
|
||||||
homesick symlink
|
|
||||||
|
|
||||||
case "$OSTYPE" in
|
|
||||||
darwin*)
|
|
||||||
echo "* Restoring mackup..."
|
|
||||||
mackup restore
|
|
||||||
|
|
||||||
echo "* Homebrew updates..."
|
|
||||||
brew bundle --global --no-lock
|
|
||||||
brew upgrade
|
|
||||||
|
|
||||||
echo "* Upgrading mac app store apps..."
|
|
||||||
mas upgrade
|
|
||||||
;;
|
|
||||||
linux*)
|
|
||||||
sudo apt update && sudo apt upgrade
|
|
||||||
sudo snap refresh
|
|
||||||
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo "* asdf update..."
|
|
||||||
export R_CONFIGURE_OPTIONS="--with-x=no"
|
|
||||||
for plugin in $(cat ~/.tool-versions | awk '{print $1}'); do asdf plugin-add $plugin; done
|
|
||||||
asdf update
|
|
||||||
asdf plugin-update --all
|
|
||||||
asdf install
|
|
||||||
for plugin in $(cat ~/.tool-versions | awk '{print $1}'); do install_latest $plugin; done
|
|
||||||
|
|
||||||
echo "* Syncing repositories..."
|
|
||||||
mr -j 5 update
|
|
||||||
|
|
||||||
echo "* Upgrading oh-my-zsh..."
|
|
||||||
cd ~/.oh-my-zsh
|
|
||||||
git pull --rebase --stat origin master
|
|
@ -1,21 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
echo "* Shutdown vagrant..."
|
|
||||||
for box in $(vagrant global-status|grep running|awk '{ print $1 }'); do vagrant halt $box; done
|
|
||||||
|
|
||||||
echo "* Shutdown docker..."
|
|
||||||
# for machine in $(docker-machine ls -q); do docker-machine stop $machine; done
|
|
||||||
for container in $(docker ps -a -q); do docker stop $container; done
|
|
||||||
docker system prune -f
|
|
||||||
|
|
||||||
echo "* Stop running services..."
|
|
||||||
brew services stop --all
|
|
||||||
|
|
||||||
echo "* Kill tmux sessions..."
|
|
||||||
tmux kill-server
|
|
||||||
|
|
||||||
echo "* Uncommitted projects..."
|
|
||||||
mr -m status
|
|
||||||
|
|
||||||
echo "* Homesick status..."
|
|
||||||
homesick status
|
|
@ -1,42 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
# Inspired by https://github.com/mathiasbynens/dotfiles/blob/master/.macos
|
|
||||||
|
|
||||||
# Dock settings
|
|
||||||
defaults write com.apple.dock 'orientation' -string 'left'
|
|
||||||
defaults write com.apple.dock autohide -bool true
|
|
||||||
killall Dock
|
|
||||||
|
|
||||||
# Finder settings
|
|
||||||
# TODO: turn on stacks?
|
|
||||||
defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true
|
|
||||||
defaults write com.apple.finder ShowHardDrivesOnDesktop -bool true
|
|
||||||
defaults write com.apple.finder ShowMountedServersOnDesktop -bool true
|
|
||||||
defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool true
|
|
||||||
killall Finder
|
|
||||||
|
|
||||||
# Safari
|
|
||||||
|
|
||||||
# Enable the Develop menu
|
|
||||||
defaults write -app Safari IncludeDevelopMenu -bool true
|
|
||||||
defaults write -app Safari WebKitDeveloperExtrasEnabledPreferenceKey -bool true
|
|
||||||
defaults write -app Safari WebKitPreferences.developerExtrasEnabled -bool true
|
|
||||||
# Disable AutoFill
|
|
||||||
defaults write -app Safari AutoFillFromAddressBook -bool false
|
|
||||||
defaults write -app Safari AutoFillPasswords -bool false
|
|
||||||
defaults write -app Safari AutoFillCreditCardData -bool false
|
|
||||||
defaults write -app Safari AutoFillMiscellaneousForms -bool false
|
|
||||||
|
|
||||||
# Mail
|
|
||||||
# TODO: notifications for contacts only
|
|
||||||
# TODO: disable sounds
|
|
||||||
|
|
||||||
# Sharing
|
|
||||||
# Turn on SSH
|
|
||||||
sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist
|
|
||||||
# TODO: turn on VNC?
|
|
||||||
|
|
||||||
# iTerm 2
|
|
||||||
# Specify the preferences directory
|
|
||||||
defaults write com.googlecode.iterm2.plist PrefsCustomFolder -string "~/SynologyDrive/Config/iTerm/"
|
|
||||||
# Tell iTerm2 to use the custom preferences in the directory
|
|
||||||
defaults write com.googlecode.iterm2.plist LoadPrefsFromCustomFolder -bool true
|
|
@ -1,85 +0,0 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = [ <home-manager/nix-darwin> ./homebrew.nix ];
|
|
||||||
|
|
||||||
# List packages installed in system profile. To search by name, run:
|
|
||||||
# $ nix-env -qaP | grep wget
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
deno
|
|
||||||
elixir
|
|
||||||
emacs
|
|
||||||
exercism
|
|
||||||
go
|
|
||||||
niv
|
|
||||||
nodejs
|
|
||||||
rustup
|
|
||||||
];
|
|
||||||
|
|
||||||
# Use a custom configuration.nix location.
|
|
||||||
# $ darwin-rebuild switch -I darwin-config=$HOME/.config/nixpkgs/darwin/configuration.nix
|
|
||||||
# environment.darwinConfig = "$HOME/.config/nixpkgs/darwin/configuration.nix";
|
|
||||||
|
|
||||||
# Auto upgrade nix package and the daemon service.
|
|
||||||
services.nix-daemon.enable = true;
|
|
||||||
nix.package = pkgs.nix;
|
|
||||||
nix.extraOptions = ''
|
|
||||||
experimental-features = nix-command flakes
|
|
||||||
'';
|
|
||||||
|
|
||||||
nix.distributedBuilds = true;
|
|
||||||
nix.buildMachines = [{
|
|
||||||
hostName = "plato";
|
|
||||||
systems = [ "x86_64-linux" "aarch64-linux" ];
|
|
||||||
maxJobs = 12;
|
|
||||||
speedFactor = 2;
|
|
||||||
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
|
|
||||||
}];
|
|
||||||
|
|
||||||
# Binary Cache for Haskell.nix
|
|
||||||
nix.binaryCachePublicKeys =
|
|
||||||
[ "hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=" ];
|
|
||||||
nix.binaryCaches = [ "https://hydra.iohk.io" ];
|
|
||||||
|
|
||||||
# Create /etc/bashrc that loads the nix-darwin environment.
|
|
||||||
programs = {
|
|
||||||
zsh = {
|
|
||||||
enable = true;
|
|
||||||
promptInit = "";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
# programs.fish.enable = true;
|
|
||||||
|
|
||||||
users.nix.configureBuildUsers = true;
|
|
||||||
users.users.walkah = {
|
|
||||||
home = "/Users/walkah";
|
|
||||||
shell = pkgs.zsh;
|
|
||||||
};
|
|
||||||
home-manager.users.walkah = import ../home.nix;
|
|
||||||
|
|
||||||
services.lorri.enable = true;
|
|
||||||
|
|
||||||
system = {
|
|
||||||
defaults = {
|
|
||||||
dock = {
|
|
||||||
autohide = true;
|
|
||||||
orientation = "left";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
system.activationScripts.applications.text = pkgs.lib.mkForce (
|
|
||||||
''
|
|
||||||
rm -rf /Applications/Nix
|
|
||||||
mkdir -p /Applications/Nix
|
|
||||||
for app in $(find ${config.system.build.applications}/Applications -maxdepth 1 -type l); do
|
|
||||||
src="$(/usr/bin/stat -f%Y "$app")"
|
|
||||||
cp -r "$src" /Applications/Nix
|
|
||||||
done
|
|
||||||
''
|
|
||||||
);
|
|
||||||
|
|
||||||
# Used for backwards compatibility, please read the changelog before changing.
|
|
||||||
# $ darwin-rebuild changelog
|
|
||||||
system.stateVersion = 4;
|
|
||||||
}
|
|
@ -1,81 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
homebrew = {
|
|
||||||
enable = true;
|
|
||||||
autoUpdate = true;
|
|
||||||
cleanup = "zap";
|
|
||||||
global = {
|
|
||||||
brewfile = true;
|
|
||||||
noLock = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
taps = [
|
|
||||||
"homebrew/cask"
|
|
||||||
"homebrew/cask-drivers"
|
|
||||||
"homebrew/cask-fonts"
|
|
||||||
"homebrew/cask-versions"
|
|
||||||
];
|
|
||||||
|
|
||||||
brews = [ "coreutils" ];
|
|
||||||
|
|
||||||
casks = [
|
|
||||||
"1password"
|
|
||||||
"adobe-acrobat-reader"
|
|
||||||
"balenaetcher"
|
|
||||||
"bartender"
|
|
||||||
"brave-browser"
|
|
||||||
"bunch"
|
|
||||||
"calibre"
|
|
||||||
"dash"
|
|
||||||
"discord"
|
|
||||||
"docker"
|
|
||||||
"element"
|
|
||||||
"fantastical"
|
|
||||||
"figma"
|
|
||||||
"firefox"
|
|
||||||
"firefox-developer-edition"
|
|
||||||
"font-jetbrains-mono"
|
|
||||||
"font-jetbrains-mono-nerd-font"
|
|
||||||
"gather"
|
|
||||||
"google-chrome"
|
|
||||||
"gpg-suite"
|
|
||||||
"hazel"
|
|
||||||
"ipfs"
|
|
||||||
"iterm2"
|
|
||||||
"keybase"
|
|
||||||
"logitech-options"
|
|
||||||
"logseq"
|
|
||||||
"microsoft-edge"
|
|
||||||
"minecraft"
|
|
||||||
"obsidian"
|
|
||||||
"plexamp"
|
|
||||||
"r"
|
|
||||||
"raycast"
|
|
||||||
"rescuetime"
|
|
||||||
"rocket"
|
|
||||||
"rstudio"
|
|
||||||
"slack"
|
|
||||||
"sonos"
|
|
||||||
"spotify"
|
|
||||||
"stats"
|
|
||||||
"steam"
|
|
||||||
"syncthing"
|
|
||||||
"synology-drive"
|
|
||||||
"visual-studio-code"
|
|
||||||
"zoom"
|
|
||||||
];
|
|
||||||
|
|
||||||
masApps = {
|
|
||||||
Bumpr = 1166066070;
|
|
||||||
"Day One" = 1055511498;
|
|
||||||
Drafts = 1435957248;
|
|
||||||
Parcel = 639968404;
|
|
||||||
Reeder = 1529448980;
|
|
||||||
Tailscale = 1475387142;
|
|
||||||
Todoist = 585829637;
|
|
||||||
UlyssesMac = 1225570693;
|
|
||||||
Xcode = 497799835;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
108
flake.lock
generated
108
flake.lock
generated
@ -1,5 +1,60 @@
|
|||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
|
"flake-compat": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1696426674,
|
||||||
|
"narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=",
|
||||||
|
"owner": "edolstra",
|
||||||
|
"repo": "flake-compat",
|
||||||
|
"rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "edolstra",
|
||||||
|
"repo": "flake-compat",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-utils": {
|
||||||
|
"inputs": {
|
||||||
|
"systems": "systems"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1731533236,
|
||||||
|
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"gitignore": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"pre-commit-hooks",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1709087332,
|
||||||
|
"narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=",
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "gitignore.nix",
|
||||||
|
"rev": "637db329424fd7e46cf4185293b9cc8c88c95394",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "gitignore.nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"home-manager": {
|
"home-manager": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
@ -7,11 +62,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1640592198,
|
"lastModified": 1746798521,
|
||||||
"narHash": "sha256-F5dWVGQMscmGyLTzNLocPB1v8Ijp8ONx8Nq9Dmi5PSw=",
|
"narHash": "sha256-axfz/jBEH9XHpS7YSumstV7b2PrPf7L8bhWUtLBv3nA=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "0b197562ab7bf114dd5f6716f41d4b5be6ccd357",
|
"rev": "e95a7c5b6fa93304cd2fd78cf676c4f6d23c422c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -22,11 +77,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1640418986,
|
"lastModified": 1746576598,
|
||||||
"narHash": "sha256-a8GGtxn2iL3WAkY5H+4E0s3Q7XJt6bTOvos9qqxT5OQ=",
|
"narHash": "sha256-FshoQvr6Aor5SnORVvh/ZdJ1Sa2U4ZrIMwKBX5k2wu0=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "5c37ad87222cfc1ec36d6cd1364514a9efc2f7f2",
|
"rev": "b3582c75c7f21ce0b429898980eddbbf05c68e55",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -36,10 +91,49 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"pre-commit-hooks": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-compat": "flake-compat",
|
||||||
|
"gitignore": "gitignore",
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1746537231,
|
||||||
|
"narHash": "sha256-Wb2xeSyOsCoTCTj7LOoD6cdKLEROyFAArnYoS+noCWo=",
|
||||||
|
"owner": "cachix",
|
||||||
|
"repo": "pre-commit-hooks.nix",
|
||||||
|
"rev": "fa466640195d38ec97cf0493d6d6882bc4d14969",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "cachix",
|
||||||
|
"repo": "pre-commit-hooks.nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
|
"flake-utils": "flake-utils",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs",
|
||||||
|
"pre-commit-hooks": "pre-commit-hooks"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"systems": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
79
flake.nix
79
flake.nix
@ -3,49 +3,58 @@
|
|||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||||
home-manager.url = "github:nix-community/home-manager";
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
home-manager = {
|
||||||
|
url = "github:nix-community/home-manager";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
pre-commit-hooks = {
|
||||||
|
url = "github:cachix/pre-commit-hooks.nix";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, home-manager }: {
|
};
|
||||||
|
|
||||||
|
outputs = { self, nixpkgs, home-manager, flake-utils, pre-commit-hooks, ... }:
|
||||||
|
flake-utils.lib.eachSystem [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" ]
|
||||||
|
(system:
|
||||||
|
let pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
in
|
||||||
|
{
|
||||||
homeConfigurations = {
|
homeConfigurations = {
|
||||||
aarch64-darwin = home-manager.lib.homeManagerConfiguration {
|
walkah = home-manager.lib.homeManagerConfiguration {
|
||||||
system = "aarch64-darwin";
|
inherit pkgs;
|
||||||
homeDirectory = "/Users/walkah";
|
|
||||||
username = "walkah";
|
modules = [
|
||||||
stateVersion = "21.03";
|
|
||||||
configuration = { config, pkgs, ... }: {
|
|
||||||
imports = [
|
|
||||||
./home.nix
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
x86_64-darwin = home-manager.lib.homeManagerConfiguration {
|
|
||||||
system = "x86_64-darwin";
|
|
||||||
homeDirectory = "/Users/walkah";
|
|
||||||
username = "walkah";
|
|
||||||
stateVersion = "21.03";
|
|
||||||
configuration = { config, pkgs, ... }: {
|
|
||||||
imports = [
|
|
||||||
./home.nix
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
x86_64-linux = home-manager.lib.homeManagerConfiguration {
|
|
||||||
system = "x86_64-linux";
|
|
||||||
homeDirectory = "/home/walkah";
|
|
||||||
username = "walkah";
|
|
||||||
stateVersion = "21.03";
|
|
||||||
configuration = { config, pkgs, ... }: {
|
|
||||||
imports = [
|
|
||||||
./home.nix
|
./home.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
packages.default = self.homeConfigurations.${system}.walkah.activationPackage;
|
||||||
|
|
||||||
|
checks = {
|
||||||
|
pre-commit-check = pre-commit-hooks.lib.${system}.run {
|
||||||
|
src = ./.;
|
||||||
|
hooks = {
|
||||||
|
deadnix.enable = true;
|
||||||
|
nixpkgs-fmt.enable = true;
|
||||||
|
statix.enable = true;
|
||||||
};
|
};
|
||||||
defaultPackage.aarch64-darwin = self.homeConfigurations.aarch64-darwin.activationPackage;
|
|
||||||
defaultPackage.x86_64-darwin = self.homeConfigurations.x86_64-darwin.activationPackage;
|
|
||||||
defaultPackage.x86_64-linux = self.homeConfigurations.x86_64-linux.activationPackage;
|
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
devShells.default = pkgs.mkShell {
|
||||||
|
name = "dotfiles";
|
||||||
|
buildInputs = with pkgs; [
|
||||||
|
deadnix
|
||||||
|
nil
|
||||||
|
nixpkgs-fmt
|
||||||
|
statix
|
||||||
|
];
|
||||||
|
|
||||||
|
inherit (self.checks.${system}.pre-commit-check) shellHook;
|
||||||
|
};
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
159
home.nix
159
home.nix
@ -1,157 +1,30 @@
|
|||||||
{ config, pkgs, ... }: {
|
{ lib, pkgs, ... }: {
|
||||||
# Let Home Manager install and manage itself.
|
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
# Home Manager needs a bit of information about you and the
|
home = {
|
||||||
# paths it should manage.
|
username = "walkah";
|
||||||
# home.username = builtins.getEnv "USER";
|
homeDirectory = if pkgs.stdenv.isDarwin then "/Users/walkah" else "/home/walkah";
|
||||||
# home.homeDirectory = builtins.getEnv "HOME";
|
packages = with pkgs; [
|
||||||
|
chezmoi
|
||||||
home.sessionPath = [
|
bat
|
||||||
"$HOME/.cargo/bin"
|
|
||||||
"$HOME/.emacs.d/bin"
|
|
||||||
"$HOME/.go/bin"
|
|
||||||
"$HOME/.local/bin"
|
|
||||||
];
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
direnv
|
direnv
|
||||||
exa
|
eza
|
||||||
fd
|
fd
|
||||||
|
fzf
|
||||||
git
|
git
|
||||||
gitAndTools.gh
|
|
||||||
htop
|
htop
|
||||||
jq
|
jq
|
||||||
mr
|
starship
|
||||||
nixpkgs-fmt
|
tmux
|
||||||
nixfmt
|
|
||||||
ripgrep
|
|
||||||
tea
|
|
||||||
wakatime
|
|
||||||
];
|
];
|
||||||
|
|
||||||
home.file.".doom.d" = {
|
activation.chezmoi = lib.hm.dag.entryAfter [ "installPackages" ] ''
|
||||||
onChange = ''
|
export PATH="${pkgs.git}/bin:$PATH"
|
||||||
#!/bin/sh
|
if [ ! -d $HOME/.local/share/chezmoi ]; then
|
||||||
DOOM=$HOME/.emacs.d
|
$DRY_RUN_CMD ${pkgs.chezmoi}/bin/chezmoi init --apply walkah/dotfiles
|
||||||
if [ ! -d $DOOM ]; then
|
|
||||||
git clone --depth 1 https://github.com/hlissner/doom-emacs $DOOM
|
|
||||||
fi
|
fi
|
||||||
$DOOM/bin/doom sync
|
|
||||||
'';
|
|
||||||
source = ./config/.doom.d;
|
|
||||||
recursive = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
home.file.".ghci".text = ''
|
|
||||||
:set prompt "λ> "
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
programs = {
|
stateVersion = "24.05";
|
||||||
zsh = {
|
|
||||||
enable = true;
|
|
||||||
enableAutosuggestions = true;
|
|
||||||
enableCompletion = true;
|
|
||||||
oh-my-zsh = {
|
|
||||||
enable = true;
|
|
||||||
plugins = [
|
|
||||||
"bundler"
|
|
||||||
"direnv"
|
|
||||||
"docker"
|
|
||||||
"docker-compose"
|
|
||||||
"git"
|
|
||||||
"golang"
|
|
||||||
"mix"
|
|
||||||
"rails"
|
|
||||||
"ssh-agent"
|
|
||||||
"tmux"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
sessionVariables = {
|
|
||||||
EDITOR = "vim";
|
|
||||||
GOPATH = "$HOME/.go";
|
|
||||||
};
|
|
||||||
shellAliases = {
|
|
||||||
ls = "exa --git";
|
|
||||||
ll = "exa -lh --git";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
starship = {
|
|
||||||
enable = true;
|
|
||||||
enableZshIntegration = true;
|
|
||||||
settings = {
|
|
||||||
character = {
|
|
||||||
success_symbol = "[»](bold green) ";
|
|
||||||
error_symbol = "[✗](bold red) ";
|
|
||||||
};
|
|
||||||
directory = {
|
|
||||||
fish_style_pwd_dir_length = 1;
|
|
||||||
truncation_length = 1;
|
|
||||||
};
|
|
||||||
hostname = {
|
|
||||||
ssh_only = false;
|
|
||||||
format = "[$hostname]($style):";
|
|
||||||
};
|
|
||||||
gcloud = { disabled = true; };
|
|
||||||
kubernetes = { disabled = false; };
|
|
||||||
username = { format = "[$user]($style)@"; };
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
git = {
|
|
||||||
enable = true;
|
|
||||||
userName = "James Walker";
|
|
||||||
userEmail = "walkah@walkah.net";
|
|
||||||
|
|
||||||
aliases = {
|
|
||||||
lg =
|
|
||||||
"log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit";
|
|
||||||
st = "status -s";
|
|
||||||
undo = "reset HEAD~1 --mixed";
|
|
||||||
};
|
|
||||||
|
|
||||||
extraConfig = {
|
|
||||||
github.user = "walkah";
|
|
||||||
init.defaultBranch = "main";
|
|
||||||
pull.rebase = true;
|
|
||||||
rebase.autoStash = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
signing = {
|
|
||||||
key = "8896FEC44D47A81C";
|
|
||||||
signByDefault = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
tmux = {
|
|
||||||
enable = true;
|
|
||||||
extraConfig = ''
|
|
||||||
set -g set-titles on
|
|
||||||
set -g set-titles-string "[#S] #W@#h (#I)"
|
|
||||||
|
|
||||||
set -g status-bg black
|
|
||||||
set -g status-fg white
|
|
||||||
'';
|
|
||||||
shortcut = "o";
|
|
||||||
terminal = "screen-256color";
|
|
||||||
};
|
|
||||||
|
|
||||||
emacs = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.emacs-nox;
|
|
||||||
extraPackages = epkgs: [ epkgs.vterm ];
|
|
||||||
};
|
|
||||||
|
|
||||||
vim = { enable = true; };
|
|
||||||
};
|
|
||||||
|
|
||||||
# This value determines the Home Manager release that your
|
|
||||||
# configuration is compatible with. This helps avoid breakage
|
|
||||||
# when a new Home Manager release introduces backwards
|
|
||||||
# incompatible changes.
|
|
||||||
#
|
|
||||||
# You can update Home Manager without changing this value. See
|
|
||||||
# the Home Manager release notes for a list of state version
|
|
||||||
# changes in each release.
|
|
||||||
home.stateVersion = "21.03";
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user