Skip to content

My NixOS ❄️ / macOS (Darwin)  Dotfiles

License

Notifications You must be signed in to change notification settings

FlameFlag/nix-dotfiles

Repository files navigation

My dotfiles

Fedora

Fedora Kinoite

NixOS

macOS

This repo has my dotfiles for Linux and macOS (Darwin)

Modules

system.nix - Here I keep all my macOS system settings; they're pretty opinionated compared to the macOS defaults, but I think they're very sensible

Catppuccin

catppuccin-userstyles.nix - Conveniently enough, Catppuccin has their theme for a bunch of sites. I love consistency, so I think it's a must-have

Scripts

yt-dlp-script.sh - A bash script, I have to download video in my own "niche" format

update.sh - A neat bash script I have to update any custom modules I have (e.g catppuccin-userstyles.nix)

If you want to build my dotfiles, here's how to do it:

NixOS

chezmoi apply --refresh-externals=always --force

# Override secrets with your own or modify hosts/nixos/users.nix to not use secrets

# Delete my hardware-configuration.nix and create your own one
if [ ! -f "hosts/nixos/hardware-configuration.nix" ]; then
  nixos-generate-config
  mv "hardware-configuration.nix" "hosts/nixos/nyx"
  rm "configuration.nix"
fi

nixos-rebuild switch --use-remote-sudo --flake $(readlink -f "/etc/nixos")

# After initial build, you can use the `rebuild` alias

macOS (Darwin)

chezmoi apply --refresh-externals=always --force

sudo ln -s ~/Developer/nix-dotfiles/ "/etc/nixos"

nix run nix-darwin -- switch --flake $(readlink -f "/etc/nixos/")

sudo darwin-rebuild switch --flake $(readlink -f "/etc/nixos/")

# After initial build, you can use the `rebuild` alias