Skip to content

yebei199/nixos_config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

288 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nixos config

local switch

sudo -E nixos-rebuild switch --flake .#pc_1

use cache

sudo nixos-rebuild switch --flake .#Co_1 \
           --option extra-substituters "https://vicinae.cachix.org https://niri.cachix.org" \
           --option extra-trusted-public-keys "niri.cachix.org-1:Wv0OmO7PsuocRKzfDoJ3mulSl7Z6oezYhGhR+3W2964= vicinae.cachix.org-1:1kDrfienkGHPYbkpNj1mWTr7Fm1+zcenzgTizIcI3oc="

list generations

nixos-rebuild list-generations

delete old generations than 1 day

sudo nix-collect-garbage --delete-older-than 1d

delete old generations all

sudo nix-collect-garbage -d

remote switch(not frequently)

sudo -E nixos-rebuild switch --flake github:yebei199/nixos_config#pc_1

See an overview of the flake outputs by running

nix flake show github:yebei199/nixos_config

About

my nixos config

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •