Skip to content

delafthi/dotfiles

Repository files navigation

delafthi's dotfiles

This repository contains my personal configuration files and setup scripts for managing Linux and macOS (Darwin) environments using Nix and home-manager.

The configuration is organized using a modular approach with shared components between platforms and platform-specific settings.

Features

  • Cross-platform configuration (macOS and Linux)
  • Modular organization for easy maintenance
  • Managed applications, development tools, and system settings
  • Secrets management with sops-nix
  • Consistent theming with Catppuccin
  • Automated formatting with treefmt

Installation

To set up your environment using these dotfiles, follow the steps below:

Prerequisites

  • Ensure Nix is installed on your system. You can find installation instructions here.

  • Follow these instructions to enable flakes.

  • Install just with:

    nix shell nixpkgs#just

Setup

  1. Clone the Repository
git clone https://github.com/delafthi/dotfiles.git
cd dotfiles
  1. Apply Configurations

For macOS:

just apply

For Linux:

just apply-linux

Note: The system will automatically detect your hostname and apply the appropriate configuration.

Development

This repository provides several helpful commands for development:

# Format all nix files
just fmt

# Check flake validity
just check

# Update flake inputs
just update

Structure

  • hosts/ - Host-specific configurations
  • home/ - Home-manager configurations
    • darwin/ - macOS-specific settings
    • linux/ - Linux-specific settings
    • shared/ - Shared configurations between platforms
  • modules/ - Custom Nix modules
  • overlays/ - Package overlays
  • pkgs/ - Custom packages

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •