nix

configuration files that power my machines
Log | Files | Refs | README | LICENSE

README.md (721B)


      1 # nix
      2 
      3 NixOS and home-manager configurations for multiple systems.
      4 
      5 ## Structure
      6 
      7 * **`hosts/`** - Machine-specific configurations
      8 * **`modules/`** - Reusable modules:
      9   * **`services/`** - Service definitions
     10   * **`mixins/`** - Shared dotfiles and user configurations
     11 
     12 ## Usage
     13 
     14 Commands are typically run via [just](https://github.com/casey/just), which wraps:
     15 
     16 ```sh
     17 # Validate flake
     18 nix flake check
     19 
     20 # Apply home-manager configuration
     21 nh home switch "<repo-path>"
     22 
     23 # Deploy to remote host
     24 NH_ELEVATION_STRATEGY=none nh os switch . --hostname <host> --target-host root@<host> --build-host root@<host>
     25 
     26 # Update flake.lock
     27 nix flake update
     28 
     29 # Nix store and collection cleanup
     30 nix-store --gc
     31 nix-collect-garbage -d
     32 ```