From ecfe68dbe12dfdd58125e0f0bcd047832189b04a Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Sat, 21 Mar 2026 12:03:43 +0100 Subject: Extend dotfiles to support Linux via standalone home-manager (#6) --- README.md | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 3ac45ac..8f41851 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # dotfiles -My Development Setup, managed with [Nix](https://nixos.org), [nix-darwin](https://github.com/LnL7/nix-darwin), and [home-manager](https://github.com/nix-community/home-manager). +My Development Setup, managed with [Nix](https://nixos.org), [nix-darwin](https://github.com/LnL7/nix-darwin), and [home-manager](https://github.com/nix-community/home-manager). Works on macOS and Linux. ## Quickstart @@ -20,6 +20,8 @@ git submodule update --init --recursive ### 3. Apply the configuration +#### macOS + On first run, bootstrap nix-darwin: ```shell @@ -32,18 +34,30 @@ On subsequent runs: darwin-rebuild switch --flake .#default ``` +#### Linux + +Install [home-manager](https://github.com/nix-community/home-manager) as a standalone tool and apply the configuration: + +```shell +# x86_64 (most common) +home-manager switch --flake .#simenandre + +# aarch64 (ARM64, e.g. Raspberry Pi or ARM cloud instances) +home-manager switch --flake .#simenandre@aarch64-linux +``` + ## Structure ``` -flake.nix # Entry point – nix-darwin + home-manager +flake.nix # Entry point – nix-darwin (macOS) + home-manager (macOS & Linux) modules/ darwin/ default.nix # System-level configuration (nix settings, core packages) homebrew.nix # Homebrew packages (taps, brews, casks, Mac App Store) macos.nix # macOS system defaults (replaces macos/macos script) home/ - default.nix # home-manager entry point - git.nix # Git configuration (programs.git) + default.nix # home-manager entry point (platform-aware home directory) + git.nix # Git configuration (platform-aware SSH signing path) zsh.nix # Zsh configuration files starship.nix # Starship prompt configuration tmux.nix # Tmux configuration -- cgit v1.2.3