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.

nix-config's People

Contributors

dependabot[bot] avatar ekleog avatar github-actions[bot] avatar hatesegfault avatar lovesegfault avatar web-flow 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

nix-config's Issues

Using this config without changing to `legacyPackages`

Thanks for publishing your awesome config! When trying to adapt it to my own needs, I noticed that nix flake check always fails with the message

error: flake attribute 'packages.x86_64-linux.darwin' is not a derivation

The reason seems to be that the packages attribute set always requires to have derivations as the values, which somehow is not the case here. Renaming packages to legacyPackages fixes this, but this seems like a workaround to me. Judging by your activity you are using this config regularly, so I wonder what I am missing to make it work without using legacyPackages. I hope you can shed some light onto this.

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.