Skip to content

howird/nix-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nix-config

Initial System Setup

NixOS Machines:

  • Make the follwing changes the default nixos config with sudoedit /etc/nixos/configuration.nix

    • Add nix.settings.experimental-features = "nix-command flakes";
    • Add git to environment.systemPackages
  • Apply the updates: sudo nixos-rebuild switch

  • Clone this repo:

mkdir /home/howird/nix
git clone https://github.com/howird/nix-config.git /home/howird/nix/config
# or if you have your ssh keys:
git clone git@github.com:howird/nix-config /home/howird/nix/config
  • Apply this config
sudo nixos-rebuild switch --flake .#<hostname>

non-NixOS Machines:

  • Install nix here
  • Install standalone home-manager, with these commands
  • Enable experimental features
echo "experimental-features = nix-command flakes" > ~/.config/nix/nix.conf
  • Apply this config
home-manager switch --flake .#howard@vip

Next Times

nixwird

troubleshooting

main

  • first try:
nix build nixpkgs#<pkg name>
eza --tree result/ --level 3

cache/store related

  • first try running with args:
nixwird --refresh --repair
  • if nix store is broken:
sudo nix-collect-garbage -d
nix-store --verify --check-contents --repair
  • if any derivations cannot be fixed with above command, try:
sudo nix-store --delete --ignore-liveness /nix/store/<derivation location>.drv

Credits

About

NixOS/home-manager config with Hyprland themed with Stylix

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published