(Translated by https://www.hiragana.jp/)
GitHub - runarsf/dotfiles: ❄️ Personal NixOS configuration
Skip to content

❄️ Personal NixOS configuration

Notifications You must be signed in to change notification settings

runarsf/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NixOS Configuration ❄️

Installation / initial build

# First, make sure `hostname` is right and /etc/nixos/hardware-configuration.nix is copied to ./hosts/$(hostname)/hardware-configuration.nix

# Try this
sudo nixos-rebuild --flake .# --accept-flake-config switch

# If the previous is stuck building for a while, try this instead
nix build --substituters "https://hyprland.cachix.org https://cache.nixos.org" --trusted-public-keys "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc= hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" ".#nixosConfigurations.$(hostname).config.system.build.toplevel"
sudo nixos-rebuild --flake .# switch

# Afterwards, start a new shell and verify that both hyprland.cachix.org and cache.nixos.org are substituters
nix --extra-experimental-features nix-command show-config | egrep "^substituters"

Useful tools and references

Library functions are shamelessly stolen from avatar imatpot/dotfiles