Giter Club home page Giter Club logo

nix-darwin-dotfiles's Introduction

Nix-Darwin-Dotfiles

Dotfiles for M1/M2 devices for Nix-Darwin or Asahi Linux on NixOS. Managed via https://github.com/LnL7/nix-darwin and https://github.com/nix-community/home-manager

Showcase

[[./extra/assets/out.png]]

Installing and notes

MacOS

Install Nix.

sh <(curl -L https://nixos.org/nix/install) --daemon

Build, and switch to the dotfiles

nix build ~/nix-darwin-dotfiles\#darwinConfigurations.shaunsingh-laptop.system --extra-experimental-features nix-command --extra-experimental-features flakes
./result/sw/bin/darwin-rebuild switch --flake .#shaunsingh-laptop

(note, --extra-experimental-features is only needed the first time around. After that the configuration will edit /etc/nix/nix.conf to enable flakes and nix-command by default)

Linux

Follow the nixos-apple-silicon guide to install asahi, uboot, and m1n1 to your machine. Reboot your machine into NixOS. Make sure to set a password for your user. Clone this repository and cd into it. Run the following commands. Don't worry if it takes a while, as it needs to build the kernel and certain features from source.

sudo nixos-rebuild boot --flake .#shaunsingh-laptop --extra-experimental-features nix-command --extra-experimental-features flakes
reboot

The system should reboot into nixOS and ask for your username and password, then autoboot into sway. You may optionally run the following command to free up space.

sudo nix-collect-garbage -d

Feedback

Suggestions/improvements https://github.com/shaunsingh/nix-darwin-dotfiles/issues

nix-darwin-dotfiles's People

Contributors

dependabot[bot] avatar shaunsingh avatar

Watchers

 avatar

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.