Skip to content

Nix flake configurations for NixOS and Home Manager

Notifications You must be signed in to change notification settings

benvonh/.snowflake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.snowflake

Nix flake configurations for NixOS and Home Manager.

Features

  • Hyprland - Wayland compositor
  • Neovim - terminal IDE
  • Zsh - with powerlevel10k
  • Eww - fancy widgets

Configurations

Systems (NixOS):

  • zeph - laptop

Profiles (Home Manager):

  • ben - desktop
  • dev - minimal

Online Install

  1. If Nix and Home Manager is installed and flakes are enabled, you can install a profile directly from GitHub.
home-manager switch --flake github:benvonh/.snowflake#<profile>

Local Install

  1. Clone and enter the Nix environment.
git clone https://github.com/benvonh/.snowflake
cd ~/.snowflake
nix-shell
  1. If you would like, create new NixOS and Home Manager configurations. Otherwise, skip to next step.
cp -rv ~/.snowflake/systems/zeph ~/.snowflake/systems/$HOSTNAME
cp -rv ~/.snowflake/profiles/ben ~/.snowflake/systems/$USER
nixos-generate-config --show-hardware-config > ~/.snowflake/systems/$HOSTNAME/hardware.nix
  1. Read and edit the flake. Main files of interest are:
  • flake.nix
  • systems/$HOSTNAME/default.nix
  • systems/$HOSTNAME/share/**
  • profiles/$USER/default.nix
  • profiles/$USER/share/**
  1. Switch to your NixOS and Home Manager configurations.
sudo nixos-rebuild switch --flake ~/.snowflake
home-manager switch --flake ~/.snowflake

Thanks To...

About

Nix flake configurations for NixOS and Home Manager

Topics

Resources

Stars

Watchers

Forks