Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

My personal NixOS config

License

NotificationsYou must be signed in to change notification settings

lovesegfault/nix-config

Repository files navigation

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

Deployment is done usingdeploy-rs, seeusage.

For the configurations' entry points see the individualhosts, as well asflake.nix. For adding overlays seeoverlays.

Hostnames are picked from myhostname 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 usingnix-darwin:

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

Home Manager

For non-NixOS hosts (i.e. home-manager-only systems such asbeme-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.


[8]ページ先頭

©2009-2025 Movatter.jp