Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/benvonh/.snowflake
Nix flake configurations for NixOS and Home Manager
https://github.com/benvonh/.snowflake
dotfiles home-manager hyprland nixos
Last synced: 3 months ago
JSON representation
Nix flake configurations for NixOS and Home Manager
- Host: GitHub
- URL: https://github.com/benvonh/.snowflake
- Owner: benvonh
- Created: 2023-03-09T19:25:29.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-09-27T11:10:21.000Z (over 1 year ago)
- Last Synced: 2023-09-27T21:34:51.963Z (over 1 year ago)
- Topics: dotfiles, home-manager, hyprland, nixos
- Language: Shell
- Homepage:
- Size: 101 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# .snowflake
Nix flake configurations for NixOS and Home Manager.Features
---
- `Hyprland` - Wayland compositor
- `Neovim` - terminal IDE
- `Zsh` - with powerlevel10k
- `Eww` - fancy widgetsConfigurations
---
Systems (NixOS):
- `zeph` - laptopProfiles (Home Manager):
- `ben` - desktop
- `dev` - minimalOnline Install
---
1. If Nix and Home Manager is installed and flakes are enabled, you can install a profile directly from GitHub.
```sh
home-manager switch --flake github:benvonh/.snowflake#
```Local Install
---
1. Clone and enter the Nix environment.
```sh
git clone https://github.com/benvonh/.snowflake
cd ~/.snowflake
nix-shell
```2. If you would like, create new NixOS and Home Manager configurations. Otherwise, skip to next step.
```sh
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
```3. 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/**`3. Switch to your NixOS and Home Manager configurations.
```sh
sudo nixos-rebuild switch --flake ~/.snowflake
home-manager switch --flake ~/.snowflake
```Thanks To...
---
- [Misterio77](https://github.com/misterio77) for creating flake templates at [nix-starter-configs](https://github.com/misterio77/nix-starter-configs)