Skip to content

yozhgoor/nixos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NixOS configuration

This repository keep track of my personal NixOS configuration.

This setup uses Nix Flakes and Home Manager.

Structure:

Usage

Rebuild the system from the local repository:

sudo nixos-rebuild switch --flake <path_to_repo>

Note that <path_to_repo> can be the path to the local repository but also the remote repository:

sudo nixos-rebuild switch --flake github:owner/repo

Development

The development shell can be accessed using nix develop.

Upgrade

You can upgrade NixOS to the latest version by running:

nixos-rebuild switch --upgrade --flake <path_to_repo>

Note that auto-upgrade is enabled in configuration.nix.

Clean up

To remove old, unreferenced packages:

nix-collect-garbage

The following command deletes old roots, removing the ability to roll back to them:

nix-collect-garbage -d
sudo nix-collect-garbage -d

To delete all historical versions you can use

sudo nix profile wipe-history

Optimize

You can manually optimize the store using:

nix-store --optimise

About

Personal NixOS configuration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages