Skip to content

anddani/nix-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


NixOS Flake

TODO

# 1. Copy hardware configuration from NixOS installation
cp /etc/nixos/hardware-configuration.nix hosts/${HOST}/hardware-configuration.nix

# 2. Create directories for user data
for dir in ~/Music ~/Documents ~/Pictures/wallpapers/others; do
    mkdir -p "$dir"
done

# 3. Copy wallpapers
cp -r wallpapers/otherWallpaper/gruvbox/* ~/Pictures/wallpapers/others/ && \
    cp -r wallpapers/otherWallpaper/nixos/* ~/Pictures/wallpapers/others/ && \
    ln -sf $PWD/wallpapers/wallpaper.png ~/Pictures/wallpapers/wallpaper

sudo nixos-rebuild switch --flake .#${HOST}

🗃️ Overview

📚 Layout

  • flake.nix base of the configuration
  • hosts 🌳 per-host configurations that contain machine specific configurations
    • desktop 🖥️ Desktop specific configuration
  • modules 🍱 modularized NixOS configurations
  • wallpapers 🌄 wallpapers collection

MacOS

For MacOS I'd like to use Stow due to constant issues with Nix sadly.

brew tap railwaycat/emacsmacport
brew tap anddani/homebrew-magi

brew install \
  --cask emacs-mac \
  --cask wezterm \
  git magi stow asdf yazi zellij helix \
  direnv ripgrep zsh fzf zplug starship \
  yarn typescript-language-server zoxide tailwindcss-language-server \
  font-fira-code-nerd-font rmpc mpd

# DOOM Emacs
git clone --depth 1 https://github.com/doomemacs/doomemacs ~/.config/emacs
~/.config/emacs/bin/doom install

stow dotfiles

👥 Credits

Based on anddani/nix-home

About

My NixOS config

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors