Giter Site home page Giter Site logo

malob / nixpkgs Goto Github PK

View Code? Open in Web Editor NEW
389.0 13.0 32.0 1.62 MB

My Nix system configs!

License: MIT License

Nix 52.12% Lua 47.66% Vim Script 0.22%
nix nix-dotfiles nix-expressions nixpkgs dotfiles nix-darwin nix-configs neovim home-manager nix-flake

nixpkgs's People

Stargazers

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

Watchers

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

nixpkgs's Issues

Thank you

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.

neovim error on requiring init.lua from init.vim

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?

Neovim Config

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.

  1. init_lsp_saga is deprecated it should be require'lspsaga'.setup { now apparently
  2. indent_blankline had similar changes to the api and the new line would be: require'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.

homebrew installation?

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

mas-cli continually "updates" some apps

Apps currently experiencing this issue for me are:

  • 1Blocker
  • DaisyDisk

Apps are installed via mas using brew bundle, by the nix-darwin Hombrew module:

homebrew.masApps = {
"1Blocker" = 1107421413;
"1Password" = 1333542190;
"Accelerate for Safari" = 1459809092;
DaisyDisk = 411643860;
"Dark Mode for Safari" = 1397180934;
Deliveries = 924726344;
Fantastical = 975937182;
Keynote = 409183694;
"LG Screen Manager" = 1142051783;
MindNode = 1289197285;
Numbers = 409203825;
Pages = 409201541;
Patterns = 429449079;
Pixelmator = 407963104;
"Pixelmator Pro" = 1289583905;
"Save to Raindrop.io" = 1549370672;
Slack = 803453959;
SiteSucker = 442168834;
"Things 3" = 904280696;
"Type Fu" = 509818877;
Ulysses = 1225570693;
Vimari = 1480933944;
"WiFi Explorer" = 494803304;
Xcode = 497799835;
};

Should be resolved when this PR lands: mas-cli/mas#346

Module to Require Password as Well as Touch ID for Sudo

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 ;).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.