Skip to content

CodeBoyPhilo/Nix-Config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

331 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Philo's Nix-Config

Personal Nix config for NixOS, nix-darwin, and Home Manager.

Architecture

Repo uses flake-parts + import-tree + Den:

flake.nix
modules/
  core/                 # flake-parts core, metadata, paths, checks
  den.nix               # Den flake module import
  hosts.nix             # active Den hosts and standalone homes
  builders.nix          # local constructors, overlays, special args
  systems.nix
  aspects/
    profiles.nix
    hosts/              # host aspects
    users/              # user/home aspects
    features/           # Den-native feature aspects
resources/              # static feature payloads
assets/                 # README/media assets

Active hosts

  • m1-mbp: Darwin + Home Manager
  • a18p-mbn: Darwin + Home Manager
  • lanix: NixOS + Home Manager
  • lenix: NixOS + Home Manager

Example usage

Apply Home Manager config:

home-manager switch --flake .#phil_oh@hostname

Apply nix-darwin config:

darwin-rebuild switch --flake .#hostname

First Darwin bootstrap, if needed:

nix build .#darwinConfigurations.hostname.system
./result/sw/bin/darwin-rebuild switch --flake .#hostname

Apply NixOS config:

sudo nixos-rebuild switch --flake .#hostname

On NixOS, nh can replace direct home-manager switch and nixos-rebuild switch.

About

A backup of my unified multi-platform Nix configs of nix-darwin, home-manager, and NixOS

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages