Git Product home page Git Product logo

nix-config's Introduction

nix-config built with nix ci

This repository holds my NixOS configuration. It is fully reproducible, flakes based, and position-independent, meaning there is no moving around of configuration.nix.

Deployment is done using deploy-rs, see usage.

For the configurations' entry points see the individual hosts, as well as flake.nix. For adding overlays see overlays.

Hostnames are picked from my hostname list

Structure

.
├── core         # Baseline configurations applicable to all machines
├── dev          # Developer tooling configuration
├── graphical    # Sway/i3 configuration for the desktop
├── hardware     # Hardware-specific configuration
├── hosts        # Machine definitions
├── nix          # Nix build support files (overlays, deployment code)
└── users        # Per-user configurations

Usage

Deploying

NixOS

To deploy all hosts:

$ deploy

To deploy a specific host:

$ deploy .#myHost

Darwin

For macOS hosts using nix-darwin:

$ darwin-rebuild --flake ~/src/nix-config#poincare switch

Home Manager

For non-NixOS hosts (i.e. home-manager-only systems such as beme-glaptop):

$ home-manager --flake ~/src/nix-config#myHost switch

Adding overlays

Overlays should be added as individual nix files to ./nix/overlays with format

final: prev: {
    hello = (prev.hello.overrideAttrs (oldAttrs: { doCheck = false; }));
}

For more examples see ./nix/overlays.

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.