NixOS Tutorials - Basic Maintenance
Ғылым және технология
In this tutorial we look at the basic maintenance required to keep your NixOS host running smoothly.
if you're in the market for a great vpn, email or password manager Proton is what I use, and using the links below will help support the channel.
Proton VPN: go.getproton.me/SH13u
Proton Mail: go.getproton.me/SH13v
Proton Pass: go.getproton.me/SH13L
Links:
github: github.com/jason-m/whydoesnot...
Timecodes:
00:00 - intro
00:15 - updates using channels
02:47 - updates using flakes
07:12 - rollbacks
15:15 - garbage collection
17:40 - nix store optimization
Пікірлер: 12
the part about having a full disk really hit home haha. I would also like to add this tidbit of knowledge: there are ways for your nix store to get corrupted; if that happens you might end up with an unstable, unrebuildable system. The fix for this is running `nix-store --verify --check-contents --repair` (there is also a nix3 version that I haven't tried: `nix store verify --repair`) and going out for a walk
@WhyDoesNothingWork
3 күн бұрын
Thats a good tip, i've actually never had that happen *knocks on wood* but i'll add this to my maintenance routines :)
Excellent. I did not know about the automatic optimize, so that was added to my base config right away. thank you!
as always... thank you for this. it really shows an area of nixos that could be simplified a bit, but you gave me the tools to grok it and utilize it
this was really informative, thank you for covering garbage collection as well as it's one of the things that can get out of hand
@WhyDoesNothingWork
4 күн бұрын
if you've had to fix a nix host with a full drive once you never forget garbage collection again
Thank you for this video, do you mind doing a video on VPN and wireguard? Thankyou
@WhyDoesNothingWork
3 күн бұрын
I actually have a video that covers VPN/ wireguard, its in my networking video here kzread.info/dash/bejne/h4tlrtyMcdK4gKg.html there are time codes so you can skip to the relevant parts.
@brinkoo7
3 күн бұрын
@@WhyDoesNothingWork that is a really good one. if you get bored and low on ideas you can always cover Headscale which is what i am bravely using in production :)
@WhyDoesNothingWork
2 күн бұрын
I might look at VPN servers in the future, but i have a few videos already planned i've started working on.
Can you configure the auto update so that it automatically commits and pushes the flake.lock?
@WhyDoesNothingWork
2 күн бұрын
to my knowledge no you cant, what i do is use a systemd timer and service to run a script that happens right before the auto update window similar to this this wiki page has a good example thats easy to modify nixos.wiki/wiki/Systemd/Timers