Giter VIP home page Giter VIP logo

nix-darwin-dotfiles's People

Contributors

dependabot[bot] avatar shaunsingh avatar

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

nix-darwin-dotfiles's Issues

how can i fix error: hash mismatch in fixed-output derivation?

I relly like your flake files. but when i install yabai, i got the error:

nix build ./#darwinConfigurations.my-laptop.system --impure -L -v
building '/nix/store/y1fihf6cg4fizy0q5116gl2zccv2jprb-spacebarrc.drv'...
building '/nix/store/xvmd7cvwip9xzm05v73a9qwwlzbxf3zd-source.drv'...
source> trying https://github.com/donaldguy/yabai/archive/723f2ee0346b78360c497b7a7eb7be409c02302c.tar.gz
source>   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
source>                                  Dload  Upload   Total   Spent    Left  Speed
source> 100   157  100   157    0     0    204      0 --:--:-- --:--:-- --:--:--   204
source> 100 1489k    0 1489k    0     0   571k      0 --:--:--  0:00:02 --:--:-- 1581k
source> unpacking source archive /private/tmp/nix-build-source.drv-0/723f2ee0346b78360c497b7a7eb7be409c02302c.tar.gz
error: hash mismatch in fixed-output derivation '/nix/store/xvmd7cvwip9xzm05v73a9qwwlzbxf3zd-source.drv':
         specified: sha256-It07AN03vjIBh7kZgpoi7I4AVrohNdO70M5vSJW0Jf0=
            got:    sha256-rT6Lf0CnJs619DmNSP8CtjsqbwiykuRI5V6EAkBFNu8=
error: 1 dependencies of derivation '/nix/store/mvydw1qp7zsg74z4bmavh1w7072a73f3-yabai-3.3.4.drv' failed to build
building '/nix/store/j5d1ks65dddl4vk63g0lj7v4x05z2kkg-org.nixos.spacebar.plist.drv'...
error: 1 dependencies of derivation '/nix/store/6fn2xjd6326r5gggj1mxbd3aja23wbf5-org.nixos.yabai.plist.drv' failed to build
error: 1 dependencies of derivation '/nix/store/fy8hsqh39jkssjmd11i447pa9rsj5k8s-system-applications.drv' failed to build
error: 1 dependencies of derivation '/nix/store/i0v2zf1kz4j72ddw7cfprj4yj00qfyqk-yabai-sa-start.drv' failed to build
error: 1 dependencies of derivation '/nix/store/8lmlcxfbgsh8jh0hl841b1n8n9s7wpai-darwin-system-21.11.20211004.ee084c0+darwin4.e1a3f72.drv' failed to build

build failed on neovim overlay

hey, trying this out on a fresh install of macOS ventura (apple silicon), but the build fails on nix build ~/nix-dotfiles#darwinConfigurations.mimi.system --extra-experimental-features nix-command --extra-experimental-features flakes

error: builder for '/nix/store/04py1zz6y2wxjzqfaaplgd5x5xml0gn8-neovim-unwrapped-06d1e86.drv' failed with exit code 1;
       last 10 log lines:
       > patching file src/nvim/generators/gen_keysets.lua
       > Reversed (or previously applied) patch detected!  Assume -R? [n]
       > Apply anyway? [n]
       > Skipping patch.
       > 2 out of 2 hunks ignored -- saving rejects to file src/nvim/generators/gen_keysets.lua.rej
       > patching file src/nvim/generators/gen_options.lua
       > Reversed (or previously applied) patch detected!  Assume -R? [n]
       > Apply anyway? [n]
       > Skipping patch.
       > 2 out of 2 hunks ignored -- saving rejects to file src/nvim/generators/gen_options.lua.rej
       For full logs, run 'nix log /nix/store/04py1zz6y2wxjzqfaaplgd5x5xml0gn8-neovim-unwrapped-06d1e86.drv'.
error: 1 dependencies of derivation '/nix/store/1zfslkjyvzglp3sgiyn2hbdx21gxgng3-config.fish.drv' failed to build
error: 1 dependencies of derivation '/nix/store/8hf4v3v9mljcg1sv1xdz0d1397rfwag6-home-manager-applications.drv' failed to build
error: 1 dependencies of derivation '/nix/store/1mxj9l2ycj02bjg63v29r2s6kikscv2j-home-manager-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/6fasyk6zr3ax0jlrb9p3mhwvpnpkc7mx-man-paths.drv' failed to build
error: 1 dependencies of derivation '/nix/store/frlvnvny1i35s45js31mizcllgrfs01l-neovim-unwrapped-06d1e86-fish-completions.drv' failed to build
error: 1 dependencies of derivation '/nix/store/c5zpbdq2c2g2161j2mkd8ij1w3835l7c-home-manager-generation.drv' failed to build
error: 1 dependencies of derivation '/nix/store/1rn07wgbzr19xq9w1ifvjr0rf7nrg2vs-user-environment.drv' failed to build
error: 1 dependencies of derivation '/nix/store/fv2aw4k4vgzsqrwkak19jhb1mjmdrd7k-activation-mimi.drv' failed to build
error: 1 dependencies of derivation '/nix/store/icid3mqv12h5vlcxq0b49z49g3dpw4ja-darwin-system-23.05.20230123.3954218+darwin4.87b9d09.drv' failed to build

--show-trace below:

@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/47qfgiby0nlg00nc5f10vdvzb3rxjpca-nw6dxhi81zjjrqzvgr5lzmf1dnzjgq78-source
source root is nw6dxhi81zjjrqzvgr5lzmf1dnzjgq78-source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
applying patch /nix/store/jnp9n2x9cdvl47da3656illrd3p2qvb5-system_rplugin_manifest.patch
patching file runtime/autoload/remote/host.vim
patching file runtime/plugin/rplugin.vim
applying patch /nix/store/k7nfml473rvcs6sm5ir3yl9c9yc9sf4d-neovim-build-make-generated-source-files-reproducible.patch
patching file CMakeLists.txt
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file CMakeLists.txt.rej
patching file runtime/lua/vim/shared.lua
Hunk #1 succeeded at 485 with fuzz 1 (offset 38 lines).
patching file scripts/genvimvim.lua
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file scripts/genvimvim.lua.rej
patching file src/nvim/CMakeLists.txt
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file src/nvim/CMakeLists.txt.rej
patching file src/nvim/api/keysets.lua
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file src/nvim/api/keysets.lua.rej
patching file src/nvim/auevents.lua
Hunk #1 FAILED at 125.
1 out of 1 hunk FAILED -- saving rejects to file src/nvim/auevents.lua.rej
patching file src/nvim/generators/gen_api_dispatch.lua
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file src/nvim/generators/gen_api_dispatch.lua.rej
patching file src/nvim/generators/gen_eval.lua
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file src/nvim/generators/gen_eval.lua.rej
patching file src/nvim/generators/gen_events.lua
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file src/nvim/generators/gen_events.lua.rej
patching file src/nvim/generators/gen_keysets.lua
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file src/nvim/generators/gen_keysets.lua.rej
patching file src/nvim/generators/gen_options.lua
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file src/nvim/generators/gen_options.lua.rej
bash-3.2$ clear

bash-3.2$ nix log /nix/store/04py1zz6y2wxjzqfaaplgd5x5xml0gn8-neovim-unwrapped-06d1e86.drv
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/47qfgiby0nlg00nc5f10vdvzb3rxjpca-nw6dxhi81zjjrqzvgr5lzmf1dnzjgq78-source
source root is nw6dxhi81zjjrqzvgr5lzmf1dnzjgq78-source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
applying patch /nix/store/jnp9n2x9cdvl47da3656illrd3p2qvb5-system_rplugin_manifest.patch
patching file runtime/autoload/remote/host.vim
patching file runtime/plugin/rplugin.vim
applying patch /nix/store/k7nfml473rvcs6sm5ir3yl9c9yc9sf4d-neovim-build-make-generated-source-files-reproducible.patch
patching file CMakeLists.txt
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file CMakeLists.txt.rej
patching file runtime/lua/vim/shared.lua
Hunk #1 succeeded at 485 with fuzz 1 (offset 38 lines).
patching file scripts/genvimvim.lua
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file scripts/genvimvim.lua.rej
patching file src/nvim/CMakeLists.txt
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file src/nvim/CMakeLists.txt.rej
patching file src/nvim/api/keysets.lua
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file src/nvim/api/keysets.lua.rej
patching file src/nvim/auevents.lua
Hunk #1 FAILED at 125.
1 out of 1 hunk FAILED -- saving rejects to file src/nvim/auevents.lua.rej
patching file src/nvim/generators/gen_api_dispatch.lua
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file src/nvim/generators/gen_api_dispatch.lua.rej
patching file src/nvim/generators/gen_eval.lua
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file src/nvim/generators/gen_eval.lua.rej
patching file src/nvim/generators/gen_events.lua
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file src/nvim/generators/gen_events.lua.rej
patching file src/nvim/generators/gen_keysets.lua
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file src/nvim/generators/gen_keysets.lua.rej
patching file src/nvim/generators/gen_options.lua
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file src/nvim/generators/gen_options.lua.rej

any idea?

AWS cli install error

hello, I updated the configuration to the current one and encountered an error installing awscli so far, not critical, I installed it via brew, but I would like to understand if this is a configuration bug or nix itself

error: builder for '/nix/store/w5nwvfn71y90b2nm6cfgqv5q1kvwhpq9-python3.9-s3transfer-0.5.0.drv' failed with exit code 1;
       last 10 log lines:
       >     with self.assertRaisesRegexp(
       >
       > tests/unit/test_subscribers.py::TestSubscribers::test_not_callable_in_subclass_subscriber_method
       >   /private/tmp/nix-build-python3.9-s3transfer-0.5.0.drv-0/source/tests/unit/test_subscribers.py:81: DeprecationWarning: Please use assertRaisesRegex instead.
       >     with self.assertRaisesRegexp(
       >
       > -- Docs: https://docs.pytest.org/en/stable/warnings.html
       > =========================== short test summary info ============================
       > FAILED tests/unit/test_compat.py::TestBaseManager::test_can_provide_signal_handler_initializers_to_start
       > =========== 1 failed, 601 passed, 28 skipped, 44 warnings in 44.90s ============
       For full logs, run 'nix log /nix/store/w5nwvfn71y90b2nm6cfgqv5q1kvwhpq9-python3.9-s3transfer-0.5.0.drv'.
error: 1 dependencies of derivation '/nix/store/7bpz8z8p10wbf23pl3y51vmcwsimbrdh-awscli-1.22.21.drv' failed to build

Loading Telescope before "BufRead" won't work?

Hey, thanks so much for sharing your config on reddit and helping people optimize their loading times and startup.

I was setting my config up to lazy load like yours and ran into a weird edge case.

Based on the telescope.nvim README, it depends on plenary.nvim:

use {
  'nvim-telescope/telescope.nvim',
  requires = { {'nvim-lua/plenary.nvim'} }
}

In your config you don't seem to require plenary.nvim with Telescope. That means that until you have entered a buffer and BufRead has fired, you use Telescope or it will throw an error because plenary.nvim has not been loaded.

Is this a correct reading of your setup? In this case I think it just makes sense for my config to load plenary by default (since my workflow is usually just to open up nvim and then navigate via telescope before entering a buffer)

yabai: scripting-addition either failed to load or could not inject payload into Dock.app! Error: -1708

@shaunsingh thanks so much for creating this.

Don't suppose you've experienced this at all? Have created a new user with zero config and this error still persists.

services.yabai = {
#...
    enableScriptingAddition = true;
#...
}

The above seems to create a launchd agent at ~/Library/LaunchAgents/org.nixos.yabai.plist, which causes yabai: scripting-addition either failed to load or could not inject payload into Dock.app every 5s and the screen to flicker.

Have followed scripting addition configuration via yabai's wiki though no luck.

Setting enableScriptingAddition = false for now. Apologies if doing something dumb as new to Nix.

Did your yabai install successfully?

I get the same error whether I install XCode CLT or nix-shell -p xcodebuild clang(macOS 12 beta 9):

@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/kk79al6jiam8m2b2lp3yq3isackilg25-source
source root is source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
no configure script, doing nothing
@nix { "action": "setPhase", "phase": "buildPhase" }
building
build flags: SHELL=/nix/store/bkp2nl65nbzjkvg2nypxxdjns7c13g8p-bash-5.1-p8/bin/bash
makefile:42: warning: overriding recipe for target 'src/osax/sa_payload.c'
makefile:34: warning: ignoring old recipe for target 'src/osax/sa_payload.c'
rm -rf ./bin
/nix/store/bkp2nl65nbzjkvg2nypxxdjns7c13g8p-bash-5.1-p8/bin/bash: line 1: xcrun: command not found
/nix/store/bkp2nl65nbzjkvg2nypxxdjns7c13g8p-bash-5.1-p8/bin/bash: line 1: xcrun: command not found
/Library/Developer/CommandLineTools/usr/bin/clang ./src/osax/loader.m -shared -O2 -mmacosx-version-min=10.13 -arch x86_64 -o ./src/osax/loader -isysroot "" -framework Foundation
clang-11: �[0;1;31merror: �[0mno such file or directory: 'Foundation'�[0m
clang-11: �[0;1;35mwarning: �[0mno such sysroot directory: '-framework' [-Wmissing-sysroot]�[0m
clang-11: �[0;1;35mwarning: �[0mno such sysroot directory: '-framework' [-Wmissing-sysroot]�[0m
make: *** [makefile:34: src/osax/sa_loader.c] Error 1

Does emacs vterm compile on mac?

First of all, thank you for sharing your settings.

It's no different than setting up vterm, so I studied flake for a day and a half yesterday, and I learned it properly from you.
But I am new to emacs vterm; I wanted to do it. But it doesn't compile on my Mac.

pam fingerprint unlock setting is really great. I love it~*

Consider packaging sway with rounded borders to nixpkgs

Hey! Your setup is looking very nice and you should be proud of what you've done!

I was thinking of using the rounded-borders you have got going with sway, but I feel like there's going to be plenty of other people who will want rounded borders too!

Have you considered making a package specifically for your borders so that people can override the default package via home manager? Would be nice to just grab it from nixpkgs :)

installation on a mac os monterey

hello, I wanted to try your config, I corrected it for myself, but at the moment of installation I got this
[nix-shell:~/nix-darwin-dotfiles]$ ./result/sw/bin/darwin-rebuild switch --flake .#shaunsingh-laptop
warning: Git tree '/Users/vh/nix-darwin-dotfiles' is dirty
building the system configuration...
warning: Git tree '/Users/vh/nix-darwin-dotfiles' is dirty
Password:
error: Directory /run does not exist, aborting activation
Create a symlink to /var/run with:

$ sudo ln -s private/var/run /run
maybe I should remount the system partition

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.