Skip to content

akaer/nixos-configs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NIXOS tests

Cloning this repo

cd ~
git clone [email protected]:akaer/nixos-configs.git

Activate config

As the NIXOS configuration is maintained inside this GIT repository we have to make the system aware of this files. This can easily be done by symlinking the configs:

sudo ln -s ~/nixos-configs/$HOSTNAME/configuration.nix /etc/nixos/configuration.nix
sudo ln -s ~/nixos-configs/$HOSTNAME/hardware-configuration.nix /etc/nixos/hardware-configuration.nix

Build the system

sudo nixos-rebuild switch

Channels

List Channels

sudo nix-channel --list

Add Channels

To allow working with the home-manager we have to add the channel

sudo nix-channel --add https://github.com/nix-community/home-manager/archive/release-24.11.tar.gz home-manager
sudo nix-channel --update

System upgrade

sudo nix-channel --update
sudo nixos-rebuild switch --upgrade

Cleanup

sudo nix-store --gc
sudo nix-collect-garbage --delete-old

sudo nix profile history --profile /nix/var/nix/profiles/system --extra-experimental-features nix-command
sudo nix profile wipe-history --older-than 7d --profile /nix/var/nix/profiles/system --extra-experimental-features nix-command

sudo nix-env -p /nix/var/nix/profiles/system --list-generations

Resources

About

NIXOS tests

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages