Coder Social home page Coder Social logo

nixos's Introduction

README

directory dotfiles

the dirctory dotfiles is a copy of https://github.com/hebinhao1993/dotfiles.

why not use git submodule? nix flake does not support git submodule quiet well, although there exists some support. see NixOS/nix#4357, NixOS/nix#4435, NixOS/nix#4423, https://discourse.nixos.org/t/get-nix-flake-to-include-git-submodule/30324, https://discourse.nixos.org/t/nixos-build-flake-cant-read-a-file-in-a-submodule/21932.

Yes, we can use nixos-rebuild switch --flake '.?submodules=1#nixwsl' to enable submodule features, however it is not the default behavior. Besides, the use of submodule break the decentralization. When I import the nixos configuration repo to bitbucket, gitlab or self-hosted private git services, the submodule still point to the https://github.com/hebinhao1993/dotfiles. git-subtree is another method to handle this problem, but git-subtree itself introduce other problems. For example, git subtree split --rejoin will produce the same commit, which is ugly.

The content of dotfiles should be exactly the same as some commit of https://github.com/hebinhao1993/dotfiles when in the master/main branch of this nixos repo. The version.txt is an exception, which is used to track the commit id of https://github.com/hebinhao1993/dotfiles.

When in the dev branch, the content of dotfiles can be different.

nixos's People

Contributors

hebinhao1993 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.