Daru-san / Snowflake-dots

[Mirror] My beautiful, functional NixOS Hyprland and Sway configurations, written completely in Nix

Home Page:https://git.sr.ht/~darumaka/SnowyDots

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Snowy Dots

My beautiful, functional, focused nix flake with Hyprland and Sway, written completely in nix.

https://git.sr.ht/~darumaka/SnowyDots

Showcase

Hyprland

Image Image image image Image

Systems

Aurorus (Acer Laptop)

Flake Info

Packages provided by my flake

  • gh-s, a Github extension for searching through Github repositories
  • zaread, a script that can open different files like docx files in zathura
  • bridge-core, a Minecraft add-on creator for Minecraft Bedrock Edition
  • gh-download, a Github extension for downloading any file from a Github repo without cloning it

Installing NixOS

I use my own custom nixos iso to install NixOS on my systems, the flake is at SnowISO on sr.ht. It has plenty of useful tools and has sway as a desktop for graphical installs.

Installation

# Boot into the installer
# Connect to wifi, instructions on the wiki, link in the helpful links section.
# My installer has network manager installed so I use that instead of wpa utility

# Enter root shell
sudo -i

# Create you partitions, I personally use cfdisk, but you can use any tool e.g parted
cfdisk

# Format your partitions
mkfs.ext4 -L root /dev/root-partition # your partition name here

# It isn't necessary to separate home and root but I do it anyway
mkfs.ext4 -L home /dev/home-partition

# This may not be useful if you use zram but in my case I use both zram and swap partitions
# I'll work on using zram on it's own
# I primarily use swap partitions instead of swap files, set up one like this
mkswap -L swap /dev/swap-partition # replace with your partition
swapon /dev/by-label/swap

# Mount your partitions
mount /dev/by-label/root /mnt
mount --mkdir /dev/boot-partition /mnt/boot
mount --mkdir /dev/by-label/home /mnt/home

nixos-generate-config --root /mnt

# Edit the configuration
cd /mnt/etc/nixos
vi configuration.nix

# Check the partitions to make sure their mount points are correct
# Also check for swap if you're using a partition
vi hardware-configuration.nix

# Once you're done, install the system configuration
nixos-install

Deploy my config

# Clone the github repo
git clone https://github.com/Daru-san/Snowflake-dots

# or the sourcehut repo, which is more up-to-date
git clone https://git.sr.ht/~darumaka/SnowyDots

# You should probably make your own system configurations for compatibility
# Feel free to edit any files in the repo to suit your needs, otherwise

cd Snowflake-dots/systems/AspireLaptop

# Copy your partitions to the hardware-configuration.nix file
vi hardware-configuration.nix

# Build the system configuration
sudo nixos-rebuild switch --flake .#system e.g .#AspireLaptop

# Then build the home configuration

# If you haven't installed it yet
nix-shell -p home-manager

# Then switch the config
home-manager switch --flake .#daru@AspireLaptop

Thanks to

For their useful information on NixOS and Nix

For their inspiration

About

[Mirror] My beautiful, functional NixOS Hyprland and Sway configurations, written completely in Nix

https://git.sr.ht/~darumaka/SnowyDots

License:MIT License


Languages

Language:Nix 81.4%Language:CSS 17.3%Language:Nushell 1.3%