Skip to content

nazy00/nixos-dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nix Dotfiles

My Personal Nix Config

Warning

Use at your own risk. It works for me, but it may not work for you. At least not without adjustments.


Features

  • Flake-based
  • XFCE desktop environment
  • BSPWM window manager
  • Brave browser
  • Kitty terminal
  • Zsh shell
  • etc.

Components

  • flake.nix

    Config entrypoint: This flake contains a linux config. Modify username, hostname, and Nix config directory here.

  • sys/ (directory)

    System: Configure various system components, like home-manager, unfree software, system-wide packages, etc.

  • pkg/ (directory)

    Packages: Install and configure various software for the user.

  • cfg/ (directory)

    Configs: Manage non-Nix configuration files.


Installation

Edit flake.nix to change username and hostname, and change config location to the local clone of this repo and export that path using export NIXOS_CONFIG_DIR="<path/to/clone>". Then run the following lines:

# use autogenerated hardware config instead of cloned one
mv "$NIXOS_CONFIG_DIR/sys/hardware-configuration.nix" "$NIXOS_CONFIG_DIR/sys/hardware-configuration.nix.bak"
cp "/etc/nixos.bak/hardware-configuration.nix" "$NIXOS_CONFIG_DIR/sys/"

# rebuild system from config
sudo -H nixos-rebuild --experimental-features "nix-command flakes" switch --flake "$NIXOS_CONFIG_DIR"
nix run home-manager/release-24.11 -- switch --flake "$NIXOS_CONFIG_DIR"

About

My Personal Nix config

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Contributors