malob / nixpkgs Goto Github PK
View Code? Open in Web Editor NEWMy Nix system configs!
License: MIT License
My Nix system configs!
License: MIT License
Hi,
I just want to say thank you for sharing your config and documenting it. I bootstrapped my dotfiles and heavily based my initial config on your repo.
Feel free to close the issue.
hello! i recently discovered your config and i tried to replicate at my own iwth some minor changes because i wanted to migrate from init.vim to init.lua
everything went ok owever i'm getting a weid error that i'm unable to debug and solve it :/
the error is:
Error detected while processing /home/matthew/.config/nvim/init.vim:
line 16:
E5108: Error executing lua attempt to compare string with number
Press ENTER or type command to continue
and that's my init.vim
:
set packpath^=/nix/store/ayalijl9cyzsxlz5rj69nzlx49g22m05-vim-pack-dir
set runtimepath^=/nix/store/ayalijl9cyzsxlz5rj69nzlx49g22m05-vim-pack-dir
" vim-polyglot {{{
lua require('matthew.vim-polyglot')
" }}}
" nvim-tree-lua {{{
lua require('matthew.nvim-tree-lua')
" }}}
" galaxyline-nvim {{{
lua require('matthew.galaxyline-nvim')
" }}}
" nvim-bufferline-lua {{{
lua require('matthew.nvim-bufferline-lua')
" }}}
lua require('init')
and my init.lua
:
local set = vim.opt
local wo = vim.wo
local g = vim.g
local cmd = vim.cmd
local env = vim.env
g.mapleader = ','
g.maplocalleader = '\\'
-- my custom options
set.hidden = true
set.tabstop = 2
set.shiftwidth = 2
set.number = true
set.relativenumber = true
set.background = 'dark'
set.formatoptions:remove({ 'cro' })
set.autoindent = true
set.autoread = true
set.cmdheight = 1
set.whichwrap:append({ '<', '>', '[', ']', 'h', 'l' })
set.shortmess:append({ 'c' })
set.wildignore:append({ '**/node_modules/**', '**/deps/**', '**/_build/**' })
set.conceallevel = 0 -- `` on markdown and ** in org shows up
set.so = 999 -- cursor never leaves mid screen
set.nocompatible = true
set.nowrap = true
set.encoding = 'utf-8'
set.fileencoding = 'utf-8'
set.pumheight = 10 -- popup smaller
set.ruler = true
set.splitbelow = true -- horizontal split will be below
set.splitright = true -- vertical split will be to the right
set.t_Co = 256 -- support 256 colors
set.showtabline = 0 -- never show tabs
set.updatetime = 300
set.timeoutlen = 1000
set.incsearch = true
set.wildmenu = true
set.smarttab = true
set.expandtab = true
set.smartindent = true
set.laststatus = 2 -- always shoes status line
set.ignorecase = true -- make searches with lower case characters case insensative
set.smartcase = true -- search is case sensitive only if it contains uppercase chars
-- load no config plugins
require('orgmode').setup()
require('gitsigns').setup()
require('colorizer').setup()
require('nvim-web-devicons').setup({ default = true; })
-- telescope keybindings
vim.api.nvim_set_keymap('', '<leader>ff', ':Telescpope find_files<cr>', { norepmap = true })
vim.api.nvim_set_keymap('', '<leader>fg', ':Telescpope live_grep<cr>', { norepmap = true })
vim.api.nvim_set_keymap('', '<leader>fb', ':Telescpope buffers<cr>', { norepmap = true })
vim.api.nvim_set_keymap('', '<leader>fh', ':Telescpope help_tags<cr>', { norepmap = true })
-- small plugins config and extra config
g.rainbow_active = 1
g.direnv_silent_load = 1
g.dashboard_default_executive = 'telescope'
g.bullets_enabled_file_types = { 'markdown', 'text', 'gitcommit', 'orgmode', 'scratch' }
cmd 'colorscheme dracula'
cmd 'filetype plugin on'
cmd 'filetype plugin indent on'
if g.syntax_on then
cmd 'syntax enable'
end
-- true colors
--g.'\&t_8f' = '\<Esc>[38;2;%lu;%lu;%lum'
--g.'\&t_8b' = '\<Esc>[48;2;%lu;%lu;%lum'
set.termguicolors = true
vim.api.nvim_set_keymap('', '<cr>', [[:noh<cr><cr>]], { noremap = true })
-- you can't stop me
vim.api.nvim_set_keymap('c', 'w!!', [[!sudo tee %]])
could you help me?
Thanks for sharing your config here! I used it with minor changes and it is a really neat set of tools and customizations.
I had two errors on the neovim config the past weeks and fixed them now.
require'lspsaga'.setup {
now apparentlyrequire'ibl'.setup {
Happy to send a PR if this is an error others have two and the change make sense for me it removes two error messages on neovim startup.
Hi Malob,
Thanks a ton for the great nix-darwin configuration, I've been using it to write a very simple how to for M1 Macs https://discourse.nixos.org/t/simple-workable-config-for-m1-macbook-pro-monterey-12-0-1-with-nix-flakes-nix-darwin-and-home-manager/16834
I'm now looking at the homebrew aspect of your config, and I just wanted to confirm that there is not way as of yet to install homebrew using nix? It seems that the homebrew module and homebrew.enable = true
expect homebrew
to have been installed manually? Is that right?
Cheers,
Jun
Apps currently experiencing this issue for me are:
Apps are installed via mas
using brew bundle
, by the nix-darwin
Hombrew module:
Lines 55 to 80 in 8ebbfe9
Should be resolved when this PR lands: mas-cli/mas#346
First off, thanks for sharing your great nix-darwin setup. Your contributions to nix-darwin, especially the Homebrew module, have been awesome for me! So thanks.
So I love the idea of using Nix-darwin to manage my Touch ID PAM setup. One suggestion I would love implemented would be to add a module to require a password as well Touch ID -- not just Touch ID. That way, sudo auth would be multi factor.
I could see how not everyone would want this, so I could understand maybe making a separate module for this instead of making it the default behavior of security.pam.enableSudoTouchIdAuth.
I am pretty much going to bed right now but I will give it a bit more thought on how I would implement it. I may try to submit a pull request except I suck at Nix's syntax so I thought I'd write up an issue before I tried anything (I am definitely passively hoping you get around to implementing this before I even try anything ;).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.