Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.
/ nix-config Public archive

My nix systems configuration

Notifications You must be signed in to change notification settings

bjw-s-labs/nix-config

Repository files navigation

nix-config

built with nix

This repository holds my NixOS configuration. It is fully reproducible and flakes based.

Deployment is done using deploy-rs and nix-darwin, see usage. Unfortunately deploy-rs does not yet support deploying to a local machine without the use of SSH. Therefore for Darwin machines I rely on the darwin-rebuild command from nix-darwin.

For adding overlays see overlays.

Usage

Deploying

NixOS

Apply NixOS configuration to a node:

$ task nix:deploy-nixos host=gladius

Darwin

Apply a Darwin configuration to the local machine:

$ task nix:apply-darwin host=bernd-macbook

Adding overlays

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

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

For more examples see ./overlays.