jamesepatrick / nix-config

My personal NixOS config

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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, ci generators)
└── users        # Per-user configurations

usage

deploying

To deploy all hosts:

$ deploy

To deploy a specific host:

$ deploy .#myHost

non-nixOS hosts

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

$ home-manager --flake ~/src/nix-config 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.

issues

  • my wallpapers are maintained ad-hoc
  • zsh plugins must be manually updated

About

My personal NixOS config

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Nix 87.3%Language:Lua 12.7%