Skip to content

tednaaa/nixos-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Follow steps from NixOS manual for disk formating

Then follow my steps ;)

nixos-generate-config --root /mnt

mkdir -p /mnt/home/{your_user}
cd /mnt/home/{your_user}

git clone .../nixos-config
git clone .../dotfiles

cp /mnt/etc/nixos/hardware-configuration.nix ./nixos-config/hosts/hardware-configuration.nix

nixos-install --flake ./nixos-config#nixos

Set password for user and reboot

passwd {your_user}
reboot

Give to user edit access

sudo chown -R $USER:users ~/nixos-config
sudo chown -R $USER:users ~/dotfiles

Update system

nix flake update
sudo nixos-rebuild boot --flake ~/nixos-config

Manually garbage collect

sudo nix-collect-garbage -d

Check generations

sudo nixos-rebuild list-generations

About

❄️ I'll create here some declarative stuff

Resources

Stars

Watchers

Forks

Releases

No releases published

Contributors