aleeusgr / nix-things

a toolbox
1 stars 0 forks source link

how to install updates? #47

Closed aleeusgr closed 11 months ago

aleeusgr commented 1 year ago

image

aleeusgr commented 1 year ago

Hi! A silly nixOS enthusiast question: How do you update system software declaratively?

About 6 months ago I did the dance with home.nix and flake.nix, and later I migrated to another hardware.

But now my daily driver apps hate me for updates and I don't understand how to get new versions. Nix package search shows they are available. I looked up stack exchange but there is something about channels which so far as I understand nix flakes avoids using (?)

My config:

https://github.com/aleeusgr/nix-things

aleeusgr commented 1 year ago
Details

![image](https://github.com/aleeusgr/nix-things/assets/36756030/66811396-11c3-4643-9814-8e4d531ffeb1) > <@alexeusgr:matrix.org> Hi! > A silly nixOS enthusiast question: > How do you update system software declaratively? > > About 6 months ago I did the dance with home.nix and flake.nix, and later I migrated to another hardware. > > But now my daily driver apps hate me for updates and I don't understand how to get new versions. Nix package search shows they are available. > I looked up stack exchange but there is something about channels which so far as I understand nix flakes avoids using (?) > > My config: > > https://github.com/aleeusgr/nix-things

If you are okay getting the latest (since you're pointing at nixos-unstable I guess you are :)), you can just run nix flake update in the repo and then apply them as you usually do

aleeusgr commented 1 year ago
✘-1 ~/workshop/nix-things [main ↑·1|✚ 1…1]                                                                             
08:49 $ sudo nixos-rebuild switch --flake .#vivo                                                                       
warning: Git tree '/home/alex/workshop/nix-things' is dirty                                                            
building the system configuration...                                                                                   
warning: Git tree '/home/alex/workshop/nix-things' is dirty                                                            
error: Package ‘python-2.7.18.6’ in /nix/store/2p1jsxsxv0d0gkybanb5acbpi7sr6rjw-source/pkgs/development/interpreters/py
thon/cpython/2.7/default.nix:330 is marked as insecure, refusing to evaluate.                                          

       Known issues:                                                                                                   
        - Python 2.7 has reached its end of life after 2020-01-01. See https://www.python.org/doc/sunset-python-2/.  
aleeusgr commented 11 months ago

Worked around by allowing broken packages