nixos-rebuild switch --flake .
- it uses host name to determine config to apply
- Install
nix
- Clone this repo to
${HOME}/dotfiles
directory - Activate config with
nix run .#hm -- switch
- Can be also used as
nix run damszew/dotfiles#hm -- switch
to skip cloning
- Can be also used as
1password
docker-ce
action | cmd |
---|---|
update package list | sudo -i nix-channel --update |
upgrade installed | nix-env -u |
show generations | nix-env --list-generations |
rollback | nix-env --rollback |
remove old generations (keep only latest 5) | nix-env --delete-generations +5 |
action | cmd |
---|---|
update inputs in lock file | nix flake update |
nixos config switch | nixos-rebuild switch --flake . |
home-manager init | nix run home-manager/master -- init --switch . |
home-manager switch | home-manager switch --flake . |
remove old generations | nix-collect-garbage --delete-older-than 1w |