mirror of
https://github.com/cupcakearmy/nix-macos.git
synced 2024-12-22 16:26:32 +00:00
initial push
This commit is contained in:
commit
0e6ea24079
30
cask.nix
Normal file
30
cask.nix
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
[
|
||||||
|
"aldente"
|
||||||
|
"alt-tab"
|
||||||
|
"keka"
|
||||||
|
"knockknock"
|
||||||
|
"lulu"
|
||||||
|
"kap"
|
||||||
|
"keycastr"
|
||||||
|
"raycast"
|
||||||
|
"kitty"
|
||||||
|
|
||||||
|
# Dev
|
||||||
|
"docker"
|
||||||
|
"sloth"
|
||||||
|
"vscodium"
|
||||||
|
"httpie"
|
||||||
|
|
||||||
|
# Apps
|
||||||
|
"arc"
|
||||||
|
"bitwarden"
|
||||||
|
"spotify"
|
||||||
|
"vlc"
|
||||||
|
"slack"
|
||||||
|
"yubico-authenticator"
|
||||||
|
"suspicious-package"
|
||||||
|
"mediahuman-audio-converter"
|
||||||
|
"imageoptim"
|
||||||
|
"appcleaner"
|
||||||
|
|
||||||
|
]
|
4
files/git/config.personal
Normal file
4
files/git/config.personal
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[user]
|
||||||
|
name = cupcakearmy
|
||||||
|
email = hi@nicco.io
|
||||||
|
signingkey = 3235314B4D31232F
|
4
files/git/config.work
Normal file
4
files/git/config.work
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[user]
|
||||||
|
name = Niccolo Borgioli
|
||||||
|
email = hi@nicco.io
|
||||||
|
signingkey = 4897ACD13A65977C
|
27
files/git/gitconfig
Normal file
27
files/git/gitconfig
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
[filter "lfs"]
|
||||||
|
clean = git-lfs clean -- %f
|
||||||
|
smudge = git-lfs smudge -- %f
|
||||||
|
process = git-lfs filter-process
|
||||||
|
required = true
|
||||||
|
[core]
|
||||||
|
excludesfile = ~/.gitignore_global
|
||||||
|
autocrlf = input
|
||||||
|
ignorecase=false
|
||||||
|
[commit]
|
||||||
|
gpgsign = false
|
||||||
|
|
||||||
|
[includeIf "gitdir:/Users/nicco/"]
|
||||||
|
path = "~/.dotfiles/files/git/config.personal"
|
||||||
|
|
||||||
|
[includeIf "gitdir:/Users/niccoloborgioli/"]
|
||||||
|
path = "~/.dotfiles/files/git/config.work"
|
||||||
|
|
||||||
|
[pull]
|
||||||
|
rebase = false
|
||||||
|
|
||||||
|
[push]
|
||||||
|
autoSetupRemote = true
|
||||||
|
[branch]
|
||||||
|
sort = -committerdate
|
||||||
|
[alias]
|
||||||
|
fpush = push --force-with-lease
|
1
files/git/gitignore_global
Normal file
1
files/git/gitignore_global
Normal file
@ -0,0 +1 @@
|
|||||||
|
.DS_Store
|
2647
files/kitty/kitty.conf
Normal file
2647
files/kitty/kitty.conf
Normal file
File diff suppressed because it is too large
Load Diff
8
files/nvim/.gitignore
vendored
Normal file
8
files/nvim/.gitignore
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
tt.*
|
||||||
|
.tests
|
||||||
|
doc/tags
|
||||||
|
debug
|
||||||
|
.repro
|
||||||
|
foo.*
|
||||||
|
*.log
|
||||||
|
data
|
15
files/nvim/.neoconf.json
Normal file
15
files/nvim/.neoconf.json
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"neodev": {
|
||||||
|
"library": {
|
||||||
|
"enabled": true,
|
||||||
|
"plugins": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"neoconf": {
|
||||||
|
"plugins": {
|
||||||
|
"lua_ls": {
|
||||||
|
"enabled": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
201
files/nvim/LICENSE
Normal file
201
files/nvim/LICENSE
Normal file
@ -0,0 +1,201 @@
|
|||||||
|
Apache License
|
||||||
|
Version 2.0, January 2004
|
||||||
|
http://www.apache.org/licenses/
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||||
|
|
||||||
|
1. Definitions.
|
||||||
|
|
||||||
|
"License" shall mean the terms and conditions for use, reproduction,
|
||||||
|
and distribution as defined by Sections 1 through 9 of this document.
|
||||||
|
|
||||||
|
"Licensor" shall mean the copyright owner or entity authorized by
|
||||||
|
the copyright owner that is granting the License.
|
||||||
|
|
||||||
|
"Legal Entity" shall mean the union of the acting entity and all
|
||||||
|
other entities that control, are controlled by, or are under common
|
||||||
|
control with that entity. For the purposes of this definition,
|
||||||
|
"control" means (i) the power, direct or indirect, to cause the
|
||||||
|
direction or management of such entity, whether by contract or
|
||||||
|
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||||
|
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||||
|
|
||||||
|
"You" (or "Your") shall mean an individual or Legal Entity
|
||||||
|
exercising permissions granted by this License.
|
||||||
|
|
||||||
|
"Source" form shall mean the preferred form for making modifications,
|
||||||
|
including but not limited to software source code, documentation
|
||||||
|
source, and configuration files.
|
||||||
|
|
||||||
|
"Object" form shall mean any form resulting from mechanical
|
||||||
|
transformation or translation of a Source form, including but
|
||||||
|
not limited to compiled object code, generated documentation,
|
||||||
|
and conversions to other media types.
|
||||||
|
|
||||||
|
"Work" shall mean the work of authorship, whether in Source or
|
||||||
|
Object form, made available under the License, as indicated by a
|
||||||
|
copyright notice that is included in or attached to the work
|
||||||
|
(an example is provided in the Appendix below).
|
||||||
|
|
||||||
|
"Derivative Works" shall mean any work, whether in Source or Object
|
||||||
|
form, that is based on (or derived from) the Work and for which the
|
||||||
|
editorial revisions, annotations, elaborations, or other modifications
|
||||||
|
represent, as a whole, an original work of authorship. For the purposes
|
||||||
|
of this License, Derivative Works shall not include works that remain
|
||||||
|
separable from, or merely link (or bind by name) to the interfaces of,
|
||||||
|
the Work and Derivative Works thereof.
|
||||||
|
|
||||||
|
"Contribution" shall mean any work of authorship, including
|
||||||
|
the original version of the Work and any modifications or additions
|
||||||
|
to that Work or Derivative Works thereof, that is intentionally
|
||||||
|
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||||
|
or by an individual or Legal Entity authorized to submit on behalf of
|
||||||
|
the copyright owner. For the purposes of this definition, "submitted"
|
||||||
|
means any form of electronic, verbal, or written communication sent
|
||||||
|
to the Licensor or its representatives, including but not limited to
|
||||||
|
communication on electronic mailing lists, source code control systems,
|
||||||
|
and issue tracking systems that are managed by, or on behalf of, the
|
||||||
|
Licensor for the purpose of discussing and improving the Work, but
|
||||||
|
excluding communication that is conspicuously marked or otherwise
|
||||||
|
designated in writing by the copyright owner as "Not a Contribution."
|
||||||
|
|
||||||
|
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||||
|
on behalf of whom a Contribution has been received by Licensor and
|
||||||
|
subsequently incorporated within the Work.
|
||||||
|
|
||||||
|
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
copyright license to reproduce, prepare Derivative Works of,
|
||||||
|
publicly display, publicly perform, sublicense, and distribute the
|
||||||
|
Work and such Derivative Works in Source or Object form.
|
||||||
|
|
||||||
|
3. Grant of Patent License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
(except as stated in this section) patent license to make, have made,
|
||||||
|
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||||
|
where such license applies only to those patent claims licensable
|
||||||
|
by such Contributor that are necessarily infringed by their
|
||||||
|
Contribution(s) alone or by combination of their Contribution(s)
|
||||||
|
with the Work to which such Contribution(s) was submitted. If You
|
||||||
|
institute patent litigation against any entity (including a
|
||||||
|
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||||
|
or a Contribution incorporated within the Work constitutes direct
|
||||||
|
or contributory patent infringement, then any patent licenses
|
||||||
|
granted to You under this License for that Work shall terminate
|
||||||
|
as of the date such litigation is filed.
|
||||||
|
|
||||||
|
4. Redistribution. You may reproduce and distribute copies of the
|
||||||
|
Work or Derivative Works thereof in any medium, with or without
|
||||||
|
modifications, and in Source or Object form, provided that You
|
||||||
|
meet the following conditions:
|
||||||
|
|
||||||
|
(a) You must give any other recipients of the Work or
|
||||||
|
Derivative Works a copy of this License; and
|
||||||
|
|
||||||
|
(b) You must cause any modified files to carry prominent notices
|
||||||
|
stating that You changed the files; and
|
||||||
|
|
||||||
|
(c) You must retain, in the Source form of any Derivative Works
|
||||||
|
that You distribute, all copyright, patent, trademark, and
|
||||||
|
attribution notices from the Source form of the Work,
|
||||||
|
excluding those notices that do not pertain to any part of
|
||||||
|
the Derivative Works; and
|
||||||
|
|
||||||
|
(d) If the Work includes a "NOTICE" text file as part of its
|
||||||
|
distribution, then any Derivative Works that You distribute must
|
||||||
|
include a readable copy of the attribution notices contained
|
||||||
|
within such NOTICE file, excluding those notices that do not
|
||||||
|
pertain to any part of the Derivative Works, in at least one
|
||||||
|
of the following places: within a NOTICE text file distributed
|
||||||
|
as part of the Derivative Works; within the Source form or
|
||||||
|
documentation, if provided along with the Derivative Works; or,
|
||||||
|
within a display generated by the Derivative Works, if and
|
||||||
|
wherever such third-party notices normally appear. The contents
|
||||||
|
of the NOTICE file are for informational purposes only and
|
||||||
|
do not modify the License. You may add Your own attribution
|
||||||
|
notices within Derivative Works that You distribute, alongside
|
||||||
|
or as an addendum to the NOTICE text from the Work, provided
|
||||||
|
that such additional attribution notices cannot be construed
|
||||||
|
as modifying the License.
|
||||||
|
|
||||||
|
You may add Your own copyright statement to Your modifications and
|
||||||
|
may provide additional or different license terms and conditions
|
||||||
|
for use, reproduction, or distribution of Your modifications, or
|
||||||
|
for any such Derivative Works as a whole, provided Your use,
|
||||||
|
reproduction, and distribution of the Work otherwise complies with
|
||||||
|
the conditions stated in this License.
|
||||||
|
|
||||||
|
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||||
|
any Contribution intentionally submitted for inclusion in the Work
|
||||||
|
by You to the Licensor shall be under the terms and conditions of
|
||||||
|
this License, without any additional terms or conditions.
|
||||||
|
Notwithstanding the above, nothing herein shall supersede or modify
|
||||||
|
the terms of any separate license agreement you may have executed
|
||||||
|
with Licensor regarding such Contributions.
|
||||||
|
|
||||||
|
6. Trademarks. This License does not grant permission to use the trade
|
||||||
|
names, trademarks, service marks, or product names of the Licensor,
|
||||||
|
except as required for reasonable and customary use in describing the
|
||||||
|
origin of the Work and reproducing the content of the NOTICE file.
|
||||||
|
|
||||||
|
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||||
|
agreed to in writing, Licensor provides the Work (and each
|
||||||
|
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||||
|
implied, including, without limitation, any warranties or conditions
|
||||||
|
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||||
|
appropriateness of using or redistributing the Work and assume any
|
||||||
|
risks associated with Your exercise of permissions under this License.
|
||||||
|
|
||||||
|
8. Limitation of Liability. In no event and under no legal theory,
|
||||||
|
whether in tort (including negligence), contract, or otherwise,
|
||||||
|
unless required by applicable law (such as deliberate and grossly
|
||||||
|
negligent acts) or agreed to in writing, shall any Contributor be
|
||||||
|
liable to You for damages, including any direct, indirect, special,
|
||||||
|
incidental, or consequential damages of any character arising as a
|
||||||
|
result of this License or out of the use or inability to use the
|
||||||
|
Work (including but not limited to damages for loss of goodwill,
|
||||||
|
work stoppage, computer failure or malfunction, or any and all
|
||||||
|
other commercial damages or losses), even if such Contributor
|
||||||
|
has been advised of the possibility of such damages.
|
||||||
|
|
||||||
|
9. Accepting Warranty or Additional Liability. While redistributing
|
||||||
|
the Work or Derivative Works thereof, You may choose to offer,
|
||||||
|
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||||
|
or other liability obligations and/or rights consistent with this
|
||||||
|
License. However, in accepting such obligations, You may act only
|
||||||
|
on Your own behalf and on Your sole responsibility, not on behalf
|
||||||
|
of any other Contributor, and only if You agree to indemnify,
|
||||||
|
defend, and hold each Contributor harmless for any liability
|
||||||
|
incurred by, or claims asserted against, such Contributor by reason
|
||||||
|
of your accepting any such warranty or additional liability.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
APPENDIX: How to apply the Apache License to your work.
|
||||||
|
|
||||||
|
To apply the Apache License to your work, attach the following
|
||||||
|
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||||
|
replaced with your own identifying information. (Don't include
|
||||||
|
the brackets!) The text should be enclosed in the appropriate
|
||||||
|
comment syntax for the file format. We also recommend that a
|
||||||
|
file or class name and description of purpose be included on the
|
||||||
|
same "printed page" as the copyright notice for easier
|
||||||
|
identification within third-party archives.
|
||||||
|
|
||||||
|
Copyright [yyyy] [name of copyright owner]
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
4
files/nvim/README.md
Normal file
4
files/nvim/README.md
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# 💤 LazyVim
|
||||||
|
|
||||||
|
A starter template for [LazyVim](https://github.com/LazyVim/LazyVim).
|
||||||
|
Refer to the [documentation](https://lazyvim.github.io/installation) to get started.
|
2
files/nvim/init.lua
Normal file
2
files/nvim/init.lua
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
-- bootstrap lazy.nvim, LazyVim and your plugins
|
||||||
|
require("config.lazy")
|
57
files/nvim/lazy-lock.json
Normal file
57
files/nvim/lazy-lock.json
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
{
|
||||||
|
"LazyVim": { "branch": "main", "commit": "704c29110d578186f0ca3eac67b753ddf52541fc" },
|
||||||
|
"SchemaStore.nvim": { "branch": "main", "commit": "f8d6e9068861888651f68958521b1958314aac41" },
|
||||||
|
"bg.nvim": { "branch": "main", "commit": "00a12555962047b71ccb1a724eaf3293d3e995de" },
|
||||||
|
"bufferline.nvim": { "branch": "main", "commit": "5cc447cb2b463cb499c82eaeabbed4f5fa6a0a44" },
|
||||||
|
"catppuccin": { "branch": "main", "commit": "637d99e638bc6f1efedac582f6ccab08badac0c6" },
|
||||||
|
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
|
||||||
|
"cmp-git": { "branch": "main", "commit": "ec049036e354ed8ed0215f2427112882e1ea7051" },
|
||||||
|
"cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" },
|
||||||
|
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
|
||||||
|
"conform.nvim": { "branch": "master", "commit": "023f795dbcf32d4351b6a9ed2e613d471b5bb812" },
|
||||||
|
"crates.nvim": { "branch": "main", "commit": "8bf8358ee326d5d8c11dcd7ac0bcc9ff97dbc785" },
|
||||||
|
"dashboard-nvim": { "branch": "master", "commit": "ae309606940d26d8c9df8b048a6e136b6bbec478" },
|
||||||
|
"flash.nvim": { "branch": "main", "commit": "34c7be146a91fec3555c33fe89c7d643f6ef5cf1" },
|
||||||
|
"friendly-snippets": { "branch": "main", "commit": "de8fce94985873666bd9712ea3e49ee17aadb1ed" },
|
||||||
|
"fzf-lua": { "branch": "main", "commit": "2a7eb32871a131e24021dd1756865e475fe7e274" },
|
||||||
|
"gitsigns.nvim": { "branch": "main", "commit": "ac5aba6dce8c06ea22bea2c9016f51a2dbf90dc7" },
|
||||||
|
"grug-far.nvim": { "branch": "main", "commit": "9a2f78219390b47d67795ab09390d7f092e23976" },
|
||||||
|
"hop.nvim": { "branch": "master", "commit": "08ddca799089ab96a6d1763db0b8adc5320bf050" },
|
||||||
|
"indent-blankline.nvim": { "branch": "master", "commit": "7871a88056f7144defca9c931e311a3134c5d509" },
|
||||||
|
"lazy.nvim": { "branch": "main", "commit": "7967abe55752aa90532e6bb4bd4663fe27a264cb" },
|
||||||
|
"lazydev.nvim": { "branch": "main", "commit": "d5800897d9180cea800023f2429bce0a94ed6064" },
|
||||||
|
"lualine.nvim": { "branch": "master", "commit": "2a5bae925481f999263d6f5ed8361baef8df4f83" },
|
||||||
|
"luvit-meta": { "branch": "main", "commit": "ce76f6f6cdc9201523a5875a4471dcfe0186eb60" },
|
||||||
|
"markdown-preview.nvim": { "branch": "master", "commit": "a923f5fc5ba36a3b17e289dc35dc17f66d0548ee" },
|
||||||
|
"mason-lspconfig.nvim": { "branch": "main", "commit": "cab00668464d2914d0752b86168b4a431cc93eb2" },
|
||||||
|
"mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" },
|
||||||
|
"mini.ai": { "branch": "main", "commit": "31c149067d38b97720d2a179619f7745a0006ecc" },
|
||||||
|
"mini.animate": { "branch": "main", "commit": "d33ddf0eefee6338bbd95805c4595c1b34e6bfe2" },
|
||||||
|
"mini.comment": { "branch": "main", "commit": "a56581c40c19fa26f2b39da72504398de3173c5a" },
|
||||||
|
"mini.icons": { "branch": "main", "commit": "54686be7d58807906cb2c8c2216e0bf9c044f19a" },
|
||||||
|
"mini.pairs": { "branch": "main", "commit": "7e834c5937d95364cc1740e20d673afe2d034cdb" },
|
||||||
|
"mini.surround": { "branch": "main", "commit": "48a9795c9d352c771e1ab5dedab6063c0a2df037" },
|
||||||
|
"neo-tree.nvim": { "branch": "main", "commit": "a77af2e764c5ed4038d27d1c463fa49cd4794e07" },
|
||||||
|
"noice.nvim": { "branch": "main", "commit": "221ffbc499d322699ea079fcd878a2399529e775" },
|
||||||
|
"nui.nvim": { "branch": "main", "commit": "b58e2bfda5cea347c9d58b7f11cf3012c7b3953f" },
|
||||||
|
"nvim-cmp": { "branch": "main", "commit": "f17d9b4394027ff4442b298398dfcaab97e40c4f" },
|
||||||
|
"nvim-lint": { "branch": "master", "commit": "36da8dd0ddc4f88e0beae234c20e75397326f143" },
|
||||||
|
"nvim-lspconfig": { "branch": "master", "commit": "87c7c83ce62971e0bdb29bb32b8ad2b19c8f95d0" },
|
||||||
|
"nvim-snippets": { "branch": "main", "commit": "56b4052f71220144689caaa2e5b66222ba5661eb" },
|
||||||
|
"nvim-treesitter": { "branch": "master", "commit": "20e10ca6914f65cf1410232433fb58de70ab6b39" },
|
||||||
|
"nvim-treesitter-textobjects": { "branch": "master", "commit": "3e450cd85243da99dc23ebbf14f9c70e9a0c26a4" },
|
||||||
|
"nvim-ts-autotag": { "branch": "main", "commit": "e239a560f338be31337e7abc3ee42515daf23f5e" },
|
||||||
|
"nvim-ts-context-commentstring": { "branch": "main", "commit": "9c74db656c3d0b1c4392fc89a016b1910539e7c0" },
|
||||||
|
"persistence.nvim": { "branch": "main", "commit": "f6aad7dde7fcf54148ccfc5f622c6d5badd0cc3d" },
|
||||||
|
"plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" },
|
||||||
|
"render-markdown.nvim": { "branch": "main", "commit": "82184c4a3c3580a7a859b2cb7e58f16c10fd29ef" },
|
||||||
|
"rustaceanvim": { "branch": "master", "commit": "8ece53be36515cb9e76f3d03511643636469502d" },
|
||||||
|
"snacks.nvim": { "branch": "main", "commit": "313954efdfb064a85df731b29fa9b86bc711044a" },
|
||||||
|
"tailwindcss-colorizer-cmp.nvim": { "branch": "main", "commit": "3d3cd95e4a4135c250faf83dd5ed61b8e5502b86" },
|
||||||
|
"todo-comments.nvim": { "branch": "main", "commit": "ae0a2afb47cf7395dc400e5dc4e05274bf4fb9e0" },
|
||||||
|
"tokyonight.nvim": { "branch": "main", "commit": "9758827c3b380ba89da4a2212b6255d01afbcf08" },
|
||||||
|
"trouble.nvim": { "branch": "main", "commit": "3dc00c0447c016cd43e03054c3d49436a1f2076d" },
|
||||||
|
"ts-comments.nvim": { "branch": "main", "commit": "2002692ad1d3f6518d016550c20c2a890f0cbf0e" },
|
||||||
|
"vim-startuptime": { "branch": "master", "commit": "ac2cccb5be617672add1f4f3c0a55ce99ba34e01" },
|
||||||
|
"which-key.nvim": { "branch": "main", "commit": "68e37e12913a66b60073906f5d3f14dee0de19f2" }
|
||||||
|
}
|
29
files/nvim/lazyvim.json
Normal file
29
files/nvim/lazyvim.json
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
{
|
||||||
|
"extras": [
|
||||||
|
"lazyvim.plugins.extras.coding.mini-comment",
|
||||||
|
"lazyvim.plugins.extras.coding.mini-surround",
|
||||||
|
"lazyvim.plugins.extras.editor.fzf",
|
||||||
|
"lazyvim.plugins.extras.lang.docker",
|
||||||
|
"lazyvim.plugins.extras.lang.git",
|
||||||
|
"lazyvim.plugins.extras.lang.go",
|
||||||
|
"lazyvim.plugins.extras.lang.json",
|
||||||
|
"lazyvim.plugins.extras.lang.markdown",
|
||||||
|
"lazyvim.plugins.extras.lang.php",
|
||||||
|
"lazyvim.plugins.extras.lang.prisma",
|
||||||
|
"lazyvim.plugins.extras.lang.rust",
|
||||||
|
"lazyvim.plugins.extras.lang.svelte",
|
||||||
|
"lazyvim.plugins.extras.lang.tailwind",
|
||||||
|
"lazyvim.plugins.extras.lang.nix",
|
||||||
|
"lazyvim.plugins.extras.lang.toml",
|
||||||
|
"lazyvim.plugins.extras.lang.typescript",
|
||||||
|
"lazyvim.plugins.extras.lang.vue",
|
||||||
|
"lazyvim.plugins.extras.lang.yaml",
|
||||||
|
"lazyvim.plugins.extras.ui.mini-animate",
|
||||||
|
"lazyvim.plugins.extras.util.dot",
|
||||||
|
"lazyvim.plugins.extras.util.startuptime"
|
||||||
|
],
|
||||||
|
"news": {
|
||||||
|
"NEWS.md": "7107"
|
||||||
|
},
|
||||||
|
"version": 7
|
||||||
|
}
|
3
files/nvim/lua/config/autocmds.lua
Normal file
3
files/nvim/lua/config/autocmds.lua
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
-- Autocmds are automatically loaded on the VeryLazy event
|
||||||
|
-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
|
||||||
|
-- Add any additional autocmds here
|
5
files/nvim/lua/config/keymaps.lua
Normal file
5
files/nvim/lua/config/keymaps.lua
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
-- Keymaps are automatically loaded on the VeryLazy event
|
||||||
|
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
|
||||||
|
-- Add any additional keymaps here
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<leader><space>", "<cmd>HopWord<cr>", { desc = "Hop to any word" })
|
43
files/nvim/lua/config/lazy.lua
Normal file
43
files/nvim/lua/config/lazy.lua
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||||
|
|
||||||
|
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||||
|
-- bootstrap lazy.nvim
|
||||||
|
-- stylua: ignore
|
||||||
|
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath })
|
||||||
|
end
|
||||||
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
|
require("lazy").setup({
|
||||||
|
spec = {
|
||||||
|
-- add LazyVim and import its plugins
|
||||||
|
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
|
||||||
|
-- import/override with your plugins
|
||||||
|
{ import = "plugins" },
|
||||||
|
},
|
||||||
|
defaults = {
|
||||||
|
-- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup.
|
||||||
|
-- If you know what you're doing, you can set this to `true` to have all your custom plugins lazy-loaded by default.
|
||||||
|
lazy = false,
|
||||||
|
-- It's recommended to leave version=false for now, since a lot the plugin that support versioning,
|
||||||
|
-- have outdated releases, which may break your Neovim install.
|
||||||
|
version = false, -- always use the latest git commit
|
||||||
|
-- version = "*", -- try installing the latest stable version for plugins that support semver
|
||||||
|
},
|
||||||
|
-- install = { colorscheme = { "tokyonight", "habamax" } },
|
||||||
|
checker = { enabled = true }, -- automatically check for plugin updates
|
||||||
|
performance = {
|
||||||
|
rtp = {
|
||||||
|
-- disable some rtp plugins
|
||||||
|
disabled_plugins = {
|
||||||
|
"gzip",
|
||||||
|
-- "matchit",
|
||||||
|
-- "matchparen",
|
||||||
|
-- "netrwPlugin",
|
||||||
|
"tarPlugin",
|
||||||
|
"tohtml",
|
||||||
|
"tutor",
|
||||||
|
"zipPlugin",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
3
files/nvim/lua/config/options.lua
Normal file
3
files/nvim/lua/config/options.lua
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
-- Options are automatically loaded before lazy.nvim startup
|
||||||
|
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
|
||||||
|
-- Add any additional options here
|
3
files/nvim/lua/plugins/bg.lua
Normal file
3
files/nvim/lua/plugins/bg.lua
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
return {
|
||||||
|
{ "typicode/bg.nvim", lazy = false },
|
||||||
|
}
|
12
files/nvim/lua/plugins/hop.lua
Normal file
12
files/nvim/lua/plugins/hop.lua
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
return {
|
||||||
|
{
|
||||||
|
"smoka7/hop.nvim",
|
||||||
|
version = "*",
|
||||||
|
opts = {
|
||||||
|
keys = "etovxqpdygfblzhckisuran",
|
||||||
|
},
|
||||||
|
keys = {
|
||||||
|
{ "<leader><space>", "<cmd>HopWord<cr>", desc = "Hop to any word" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
10
files/nvim/lua/plugins/onedark.lua
Normal file
10
files/nvim/lua/plugins/onedark.lua
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
return {
|
||||||
|
-- { "navarasu/onedark.nvim", opts = { style = "darker" } },
|
||||||
|
-- { "LazyVim/LazyVim", opts = {
|
||||||
|
-- colorscheme = "onedark",
|
||||||
|
-- } },
|
||||||
|
{ "catppuccin/nvim", name = "catppuccin" },
|
||||||
|
{ "LazyVim/LazyVim", opts = {
|
||||||
|
colorscheme = "catppuccin",
|
||||||
|
} },
|
||||||
|
}
|
3
files/nvim/stylua.toml
Normal file
3
files/nvim/stylua.toml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
indent_type = "Spaces"
|
||||||
|
indent_width = 2
|
||||||
|
column_width = 120
|
1
files/omp/colors/.gitignore
vendored
Normal file
1
files/omp/colors/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
node_modules
|
BIN
files/omp/colors/bun.lockb
Executable file
BIN
files/omp/colors/bun.lockb
Executable file
Binary file not shown.
106
files/omp/colors/colors.json
Normal file
106
files/omp/colors/colors.json
Normal file
@ -0,0 +1,106 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"steps": 8,
|
||||||
|
"hue": {
|
||||||
|
"start": 209,
|
||||||
|
"end": 259,
|
||||||
|
"curve": "easeOutQuad"
|
||||||
|
},
|
||||||
|
"saturation": {
|
||||||
|
"start": 0.03,
|
||||||
|
"end": 1,
|
||||||
|
"rate": 1,
|
||||||
|
"curve": "easeOutQuad"
|
||||||
|
},
|
||||||
|
"brightness": {
|
||||||
|
"start": 1,
|
||||||
|
"end": 0.03,
|
||||||
|
"curve": "easeInQuart"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"minorSteps": [0, 1],
|
||||||
|
"name": "Main",
|
||||||
|
"rotation": "clockwise"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"steps": 8,
|
||||||
|
"hue": {
|
||||||
|
"start": 0,
|
||||||
|
"end": 15,
|
||||||
|
"curve": "easeOutQuad"
|
||||||
|
},
|
||||||
|
"saturation": {
|
||||||
|
"start": 0.75,
|
||||||
|
"end": 1,
|
||||||
|
"rate": 1,
|
||||||
|
"curve": "easeOutQuad"
|
||||||
|
},
|
||||||
|
"brightness": {
|
||||||
|
"start": 1,
|
||||||
|
"end": 0.2,
|
||||||
|
"curve": "linear"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"minorSteps": [0, 1],
|
||||||
|
"name": "Error",
|
||||||
|
"rotation": "clockwise"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"steps": 8,
|
||||||
|
"hue": {
|
||||||
|
"start": 60,
|
||||||
|
"end": 70,
|
||||||
|
"curve": "easeOutQuad"
|
||||||
|
},
|
||||||
|
"saturation": {
|
||||||
|
"start": 0.75,
|
||||||
|
"end": 1,
|
||||||
|
"rate": 1,
|
||||||
|
"curve": "easeOutQuad"
|
||||||
|
},
|
||||||
|
"brightness": {
|
||||||
|
"start": 1,
|
||||||
|
"end": 0.2,
|
||||||
|
"curve": "linear"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"minorSteps": [0, 1],
|
||||||
|
"name": "Warning",
|
||||||
|
"rotation": "clockwise"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"steps": 8,
|
||||||
|
"hue": {
|
||||||
|
"start": 122,
|
||||||
|
"end": 146,
|
||||||
|
"curve": "easeOutQuad"
|
||||||
|
},
|
||||||
|
"saturation": {
|
||||||
|
"start": 0.75,
|
||||||
|
"end": 1,
|
||||||
|
"rate": 1,
|
||||||
|
"curve": "easeOutQuad"
|
||||||
|
},
|
||||||
|
"brightness": {
|
||||||
|
"start": 1,
|
||||||
|
"end": 0.2,
|
||||||
|
"curve": "linear"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"minorSteps": [0, 1],
|
||||||
|
"name": "Success",
|
||||||
|
"rotation": "clockwise"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
21
files/omp/colors/index.js
Normal file
21
files/omp/colors/index.js
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
import color from '@k-vyn/coloralgorithm'
|
||||||
|
import colors from './colors.json' assert { type: 'json' }
|
||||||
|
import fs from 'fs'
|
||||||
|
import yaml from 'yaml'
|
||||||
|
|
||||||
|
const offset = 10
|
||||||
|
const palette = {}
|
||||||
|
for (const { properties, options } of colors) {
|
||||||
|
const result = color.generate(properties, options)
|
||||||
|
const name = result[0].name
|
||||||
|
for (const color of result[0].colors) {
|
||||||
|
palette[`${name.toLowerCase()}-${color.step * offset}`] = color.hex
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const configFile = '../main.omp.yaml'
|
||||||
|
const config = fs.readFileSync(configFile, 'utf8')
|
||||||
|
// config.palette = palette
|
||||||
|
const output = yaml.stringify({ palette })
|
||||||
|
|
||||||
|
fs.writeFileSync(configFile, config.replace(/palette:(.|\s)*$/, output))
|
8
files/omp/colors/package.json
Normal file
8
files/omp/colors/package.json
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"type": "module",
|
||||||
|
"main": "index.js",
|
||||||
|
"dependencies": {
|
||||||
|
"@k-vyn/coloralgorithm": "^1.0.0",
|
||||||
|
"yaml": "^2.2.1"
|
||||||
|
}
|
||||||
|
}
|
159
files/omp/config.yaml
Normal file
159
files/omp/config.yaml
Normal file
@ -0,0 +1,159 @@
|
|||||||
|
# yaml-language-server: $schema=https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
|
||||||
|
|
||||||
|
palette:
|
||||||
|
error-0: '#ff4040'
|
||||||
|
error-10: '#e23629'
|
||||||
|
error-15: '#d33220'
|
||||||
|
error-20: '#c52e18'
|
||||||
|
error-30: '#a8280d'
|
||||||
|
error-40: '#8a2106'
|
||||||
|
error-5: '#f03a34'
|
||||||
|
error-50: '#6d1b02'
|
||||||
|
error-60: '#501401'
|
||||||
|
error-70: '#330d00'
|
||||||
|
main-0: '#f7fbff'
|
||||||
|
main-10: '#b4cafd'
|
||||||
|
main-15: '#95a9fc'
|
||||||
|
main-20: '#7783fa'
|
||||||
|
main-30: '#5348f4'
|
||||||
|
main-40: '#4826e8'
|
||||||
|
main-5: '#d6e6fe'
|
||||||
|
main-50: '#3e10ca'
|
||||||
|
main-60: '#22036e'
|
||||||
|
main-70: '#020008'
|
||||||
|
success-0: '#40ff46'
|
||||||
|
success-10: '#29e243'
|
||||||
|
success-15: '#20d342'
|
||||||
|
success-20: '#18c541'
|
||||||
|
success-30: '#0da83d'
|
||||||
|
success-40: '#068a36'
|
||||||
|
success-5: '#34f044'
|
||||||
|
success-50: '#026d2d'
|
||||||
|
success-60: '#015022'
|
||||||
|
success-70: '#003316'
|
||||||
|
warning-0: '#ffff40'
|
||||||
|
warning-10: '#dae229'
|
||||||
|
warning-15: '#c8d320'
|
||||||
|
warning-20: '#b6c518'
|
||||||
|
warning-30: '#96a80d'
|
||||||
|
warning-40: '#788a06'
|
||||||
|
warning-5: '#ecf034'
|
||||||
|
warning-50: '#5d6d02'
|
||||||
|
warning-60: '#435001'
|
||||||
|
warning-70: '#2a3300'
|
||||||
|
blocks:
|
||||||
|
- type: prompt
|
||||||
|
alignment: left
|
||||||
|
segments:
|
||||||
|
- leading_diamond:
|
||||||
|
foreground: p:main-70
|
||||||
|
background: p:main-5
|
||||||
|
type: os
|
||||||
|
style: diamond
|
||||||
|
- properties:
|
||||||
|
style: full
|
||||||
|
template: " \uf0e7 "
|
||||||
|
foreground: p:main-70
|
||||||
|
powerline_symbol:
|
||||||
|
background: p:error-15
|
||||||
|
type: root
|
||||||
|
style: powerline
|
||||||
|
- properties:
|
||||||
|
style: full
|
||||||
|
template: ' {{ .Path }} '
|
||||||
|
foreground: p:main-0
|
||||||
|
powerline_symbol:
|
||||||
|
background: p:main-40
|
||||||
|
type: path
|
||||||
|
style: powerline
|
||||||
|
- template: ' {{ .HEAD }} '
|
||||||
|
foreground: p:main-70
|
||||||
|
powerline_symbol:
|
||||||
|
background: p:warning-10
|
||||||
|
type: git
|
||||||
|
style: powerline
|
||||||
|
- type: prompt
|
||||||
|
alignment: right
|
||||||
|
segments:
|
||||||
|
- leading_diamond:
|
||||||
|
trailing_diamond:
|
||||||
|
foreground: p:main-70
|
||||||
|
background: p:main-10
|
||||||
|
type: python
|
||||||
|
style: dynamic
|
||||||
|
- leading_diamond:
|
||||||
|
trailing_diamond:
|
||||||
|
foreground: p:main-70
|
||||||
|
background: p:main-10
|
||||||
|
type: go
|
||||||
|
style: dynamic
|
||||||
|
- leading_diamond:
|
||||||
|
trailing_diamond:
|
||||||
|
foreground: p:main-70
|
||||||
|
background: p:main-10
|
||||||
|
type: node
|
||||||
|
style: dynamic
|
||||||
|
- leading_diamond:
|
||||||
|
trailing_diamond:
|
||||||
|
template: '{{ .Context }}{{ if .Namespace }}::{{ .Namespace }}{{ end }}'
|
||||||
|
foreground: p:main-70
|
||||||
|
background: p:main-10
|
||||||
|
type: kubectl
|
||||||
|
style: dynamic
|
||||||
|
- leading_diamond:
|
||||||
|
trailing_diamond:
|
||||||
|
template: '{{ .Icon }} {{ .Server }}'
|
||||||
|
foreground: p:main-70
|
||||||
|
background: p:main-10
|
||||||
|
type: docker
|
||||||
|
style: dynamic
|
||||||
|
- leading_diamond:
|
||||||
|
trailing_diamond:
|
||||||
|
foreground: p:main-70
|
||||||
|
background: p:main-10
|
||||||
|
type: rust
|
||||||
|
style: dynamic
|
||||||
|
- leading_diamond:
|
||||||
|
trailing_diamond:
|
||||||
|
foreground: p:main-70
|
||||||
|
background: p:main-10
|
||||||
|
type: battery
|
||||||
|
style: dynamic
|
||||||
|
- properties:
|
||||||
|
always_enabled: true
|
||||||
|
leading_diamond:
|
||||||
|
template: "{{ if gt .Code 0 }}\uf00d {{ .Code }} {{ .Meaning }}{{ else }}\uf42e{{ end }}"
|
||||||
|
foreground: p:main-70
|
||||||
|
type: status
|
||||||
|
style: diamond
|
||||||
|
background_templates:
|
||||||
|
- '{{ if gt .Code 0 }}p:error-0{{ else }}p:main-10{{ end }}'
|
||||||
|
- properties:
|
||||||
|
always_enabled: true
|
||||||
|
style: round
|
||||||
|
foreground: p:main-70
|
||||||
|
powerline_symbol:
|
||||||
|
background: p:main-5
|
||||||
|
type: executiontime
|
||||||
|
style: powerline
|
||||||
|
- properties:
|
||||||
|
time_format: '15:04:05'
|
||||||
|
template: ' {{ .CurrentDate | date .Format }} '
|
||||||
|
foreground: p:main-70
|
||||||
|
powerline_symbol:
|
||||||
|
background: p:main-0
|
||||||
|
type: time
|
||||||
|
style: powerline
|
||||||
|
- type: prompt
|
||||||
|
alignment: left
|
||||||
|
segments:
|
||||||
|
- properties:
|
||||||
|
always_enabled: true
|
||||||
|
template: '❯ '
|
||||||
|
foreground: p:main-15
|
||||||
|
type: status
|
||||||
|
style: plain
|
||||||
|
foreground_templates:
|
||||||
|
- '{{ if gt .Code 0 }}p:error-15{{ end }}'
|
||||||
|
newline: true
|
||||||
|
version: 3
|
69
flake.lock
generated
Normal file
69
flake.lock
generated
Normal file
@ -0,0 +1,69 @@
|
|||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"home-manager": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1731786860,
|
||||||
|
"narHash": "sha256-130gQ5k8kZlxjBEeLpE+SvWFgSOFgQFeZlqIik7KgtQ=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "home-manager",
|
||||||
|
"rev": "1bd5616e33c0c54d7a5b37db94160635a9b27aeb",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "home-manager",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nix-darwin": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1731768170,
|
||||||
|
"narHash": "sha256-9Zj2baKY3KaKzs5+nqZgIwr/o/iibhENFxjOnpU+IOU=",
|
||||||
|
"owner": "LnL7",
|
||||||
|
"repo": "nix-darwin",
|
||||||
|
"rev": "2bcef10f4319f34ddebadb5f37eaa81ca2510730",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "LnL7",
|
||||||
|
"repo": "nix-darwin",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1731676161,
|
||||||
|
"narHash": "sha256-R0HVwLNR6/a7tonc/7ChJIRB8fJ0dyQmJYH4lOU1Zm0=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "8809585e6937d0b07fc066792c8c9abf9c3fe5c4",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "8809585e6937d0b07fc066792c8c9abf9c3fe5c4",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"inputs": {
|
||||||
|
"home-manager": "home-manager",
|
||||||
|
"nix-darwin": "nix-darwin",
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": "root",
|
||||||
|
"version": 7
|
||||||
|
}
|
82
flake.nix
Normal file
82
flake.nix
Normal file
@ -0,0 +1,82 @@
|
|||||||
|
{
|
||||||
|
description = "Example nix-darwin system flake";
|
||||||
|
|
||||||
|
inputs = {
|
||||||
|
# https://github.com/LnL7/nix-darwin/issues/1176
|
||||||
|
# nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||||
|
nixpkgs.url = "github:NixOS/nixpkgs/8809585e6937d0b07fc066792c8c9abf9c3fe5c4";
|
||||||
|
|
||||||
|
nix-darwin.url = "github:LnL7/nix-darwin";
|
||||||
|
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
|
home-manager.url = "github:nix-community/home-manager";
|
||||||
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs =
|
||||||
|
inputs@{
|
||||||
|
self,
|
||||||
|
nix-darwin,
|
||||||
|
nixpkgs,
|
||||||
|
home-manager,
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
configuration =
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
nix.settings.experimental-features = "nix-command flakes";
|
||||||
|
|
||||||
|
# Set Git commit hash for darwin-version.
|
||||||
|
system.configurationRevision = self.rev or self.dirtyRev or null;
|
||||||
|
|
||||||
|
# Used for backwards compatibility, please read the changelog before changing.
|
||||||
|
# $ darwin-rebuild changelog
|
||||||
|
system.stateVersion = 5;
|
||||||
|
nixpkgs.hostPlatform = "aarch64-darwin";
|
||||||
|
|
||||||
|
# Nix Darwin
|
||||||
|
# https://daiderd.com/nix-darwin/manual/index.html
|
||||||
|
environment.systemPackages = [ ];
|
||||||
|
|
||||||
|
system.defaults.dock.autohide = true;
|
||||||
|
system.defaults.dock.orientation = "left";
|
||||||
|
system.defaults.finder.AppleShowAllExtensions = true;
|
||||||
|
system.keyboard.remapCapsLockToEscape = true;
|
||||||
|
system.defaults.NSGlobalDomain.InitialKeyRepeat = 25;
|
||||||
|
system.defaults.NSGlobalDomain.KeyRepeat = 2;
|
||||||
|
system.defaults.NSGlobalDomain."com.apple.mouse.tapBehavior" = 1;
|
||||||
|
system.defaults.NSGlobalDomain."com.apple.trackpad.scaling" = 0.875;
|
||||||
|
system.defaults.trackpad.Dragging = true;
|
||||||
|
|
||||||
|
users.users."niccoloborgioli" = {
|
||||||
|
home = "/Users/niccoloborgioli";
|
||||||
|
shell = pkgs.fish;
|
||||||
|
};
|
||||||
|
programs.fish.enable = true;
|
||||||
|
|
||||||
|
homebrew.enable = true;
|
||||||
|
homebrew.casks = import ./cask.nix;
|
||||||
|
|
||||||
|
# Home Manager
|
||||||
|
home-manager.backupFileExtension = "backup";
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
# Build darwin flake using:
|
||||||
|
# $ darwin-rebuild build --flake .#Niccolo-Borgioli-s-MacBook-Pro
|
||||||
|
darwinConfigurations."sflx" = nix-darwin.lib.darwinSystem {
|
||||||
|
modules = [
|
||||||
|
configuration
|
||||||
|
home-manager.darwinModules.home-manager
|
||||||
|
{
|
||||||
|
home-manager.useGlobalPkgs = true;
|
||||||
|
home-manager.useUserPackages = true;
|
||||||
|
home-manager.users.niccoloborgioli = import ./home.nix;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
# Expose the package set, including overlays, for convenience.
|
||||||
|
darwinPackages = self.darwinConfigurations."sflx".pkgs;
|
||||||
|
};
|
||||||
|
}
|
119
home.nix
Normal file
119
home.nix
Normal file
@ -0,0 +1,119 @@
|
|||||||
|
# home.nix
|
||||||
|
# home-manager switch
|
||||||
|
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
# https://nix-community.github.io/home-manager
|
||||||
|
home.stateVersion = "24.11"; # Please read the comment before changing.
|
||||||
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
|
home.username = "niccoloborgioli";
|
||||||
|
home.homeDirectory = "/Users/niccoloborgioli";
|
||||||
|
|
||||||
|
# home.sessionPath = [
|
||||||
|
# "/run/current-system/sw/bin"
|
||||||
|
# "$HOME/.nix-profile/bin"
|
||||||
|
# ];
|
||||||
|
|
||||||
|
# Makes sense for user specific applications that shouldn't be available system-wide
|
||||||
|
home.packages = [
|
||||||
|
pkgs.tmux
|
||||||
|
pkgs.oh-my-posh
|
||||||
|
pkgs.git
|
||||||
|
pkgs.git-lfs
|
||||||
|
pkgs.git-crypt
|
||||||
|
pkgs.gnutar
|
||||||
|
pkgs.gnupg
|
||||||
|
pkgs.htop
|
||||||
|
pkgs.rclone
|
||||||
|
pkgs.rename
|
||||||
|
pkgs.tmux
|
||||||
|
pkgs.tree
|
||||||
|
pkgs.wget
|
||||||
|
pkgs.woff2
|
||||||
|
pkgs.bat
|
||||||
|
pkgs.rsync
|
||||||
|
pkgs.direnv
|
||||||
|
pkgs.zoxide
|
||||||
|
|
||||||
|
# Editor
|
||||||
|
pkgs.neovim
|
||||||
|
pkgs.fzf
|
||||||
|
pkgs.lazygit
|
||||||
|
pkgs.lua
|
||||||
|
pkgs.luajitPackages.luarocks
|
||||||
|
pkgs.ast-grep
|
||||||
|
pkgs.ripgrep
|
||||||
|
|
||||||
|
# Language specific
|
||||||
|
pkgs.nixfmt-rfc-style
|
||||||
|
pkgs.fnm
|
||||||
|
|
||||||
|
(pkgs.nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
|
||||||
|
];
|
||||||
|
|
||||||
|
home.sessionVariables = {
|
||||||
|
EDITOR = "nvim";
|
||||||
|
};
|
||||||
|
|
||||||
|
home.file = {
|
||||||
|
".config/omp/config.yaml".source = ./files/omp/config.yaml;
|
||||||
|
".config/kitty".source = ./files/kitty;
|
||||||
|
".gitconfig".source = ./files/git/gitconfig;
|
||||||
|
".gitignore_global".source = ./files/git/gitignore_global;
|
||||||
|
".config/nvim".source = ./files/nvim;
|
||||||
|
};
|
||||||
|
|
||||||
|
home.shellAliases = {
|
||||||
|
l = "ls -hal";
|
||||||
|
dc = "docker compose";
|
||||||
|
rsync = "rsync -az --info=progress2";
|
||||||
|
t = "tmux new-session -A -s main";
|
||||||
|
e = "nvim";
|
||||||
|
hms = "home-manager switch --flake ~/nix#root -b backup";
|
||||||
|
snd = "darwin-rebuild switch --flake ~/.config/nix-darwin#sflx";
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.fish = {
|
||||||
|
enable = true;
|
||||||
|
interactiveShellInit = ''
|
||||||
|
if type -q oh-my-posh
|
||||||
|
oh-my-posh init fish --config ~/.config/omp/config.yaml | source
|
||||||
|
end
|
||||||
|
if type -q fnm
|
||||||
|
fnm env --use-on-cd | source
|
||||||
|
end
|
||||||
|
if type -q direnv
|
||||||
|
direnv hook fish | source
|
||||||
|
end
|
||||||
|
if type -q zoxide
|
||||||
|
zoxide init fish | source
|
||||||
|
end
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
programs.bash = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
programs.tmux = {
|
||||||
|
enable = true;
|
||||||
|
clock24 = true;
|
||||||
|
mouse = true;
|
||||||
|
extraConfig = ''
|
||||||
|
# switch panes using Alt-arrow without prefix
|
||||||
|
bind -n M-Left select-pane -L
|
||||||
|
bind -n M-Right select-pane -R
|
||||||
|
bind -n M-Up select-pane -U
|
||||||
|
bind -n M-Down select-pane -D
|
||||||
|
|
||||||
|
# switch panes using jkhl
|
||||||
|
bind h select-pane -L
|
||||||
|
bind l select-pane -R
|
||||||
|
bind j select-pane -U
|
||||||
|
bind k select-pane -D
|
||||||
|
'';
|
||||||
|
shell = "${pkgs.fish}/bin/fish";
|
||||||
|
terminal = "tmux-256color";
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user