mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2024-11-15 05:13:10 +01:00
fixed nix-env not upgrading generations
This commit is contained in:
parent
db5f67d529
commit
3a5c757b01
|
@ -17,7 +17,8 @@
|
|||
ll = "ls -la";
|
||||
la = "ls -a";
|
||||
less = "bat";
|
||||
update = "cd /etc/nixos && nix flake update && cat ${../images/another-cat.sixel}";
|
||||
# update = "cd /etc/nixos && nix flake update && cat ${../images/another-cat.sixel}";
|
||||
update = "cd /etc/nixos && nix flake update";
|
||||
garbage = "sudo nix-collect-garbage -d && cat ${../images/cat-garbage.sixel}";
|
||||
};
|
||||
histSize = 100000;
|
||||
|
@ -54,7 +55,8 @@
|
|||
switch() {
|
||||
OUT_PATH=/tmp/nixos-rebuild-nom-$(date +%s)
|
||||
${pkgs.nix-output-monitor}/bin/nom build /etc/nixos#nixosConfigurations.${config.networking.hostName}.config.system.build.toplevel -o $OUT_PATH
|
||||
sudo $OUT_PATH/bin/switch-to-configuration switch
|
||||
sudo ${pkgs.nix}/bin/nix-env -p /nix/var/nix/profiles/system --set $OUT_PATH
|
||||
sudo $OUT_PATH/bin/switch-to-configuration switch
|
||||
unlink $OUT_PATH
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue