Manage Your NixOS Config with Git
HTML-код
- Опубликовано: 27 май 2024
- Join as a Channel Member:
/ @librephoenix
Join Liberapay: liberapay.com/LibrePhoenix/do...
Join Patreon: / librephoenix
Associated Blog Post: librephoenix.com/2024-03-14-m...
Links Referenced:
Git: git-scm.com/
GitHub: github.com/
GitLab: about.gitlab.com/
Codeberg: codeberg.org/
Sourcehut: sourcehut.org/
Gitea: docs.gitea.com/
Magit (Emacs): magit.vc/
Lazygit (TUI): github.com/jesseduffield/lazygit
Ungit (GUI): github.com/FredrikNoren/ungit
Nix Run (Determinate Systems): determinate.systems/posts/nix...
Nix Run (Official Docs): nixos.org/manual/nix/stable/c...
My configuration (if you're curious):
GitHub: github.com/librephoenix/nixos...
GitLab: gitlab.com/librephoenix/nixos...
Codeberg: codeberg.org/librephoenix/nix...
Wallpaper backgrounds were found on hdqwalls.com. - Наука
Love the video. I really appreciate what you're doing with this channel. Here's a little feedback. The nix features and explanations are why I'm here. But I've use git professionally for several years so it would be helpful if you put chapters in your videos so people like me can skip over the git explanations and go directly to the portions we're interested in.
I think there are some AI tools that will auto generate sections for you if you want to try that.
@@SimplyWondering Perhaps, but I can't think of one that's as entertaining as this guy.
@@spencerallen323I think they meant an AI that would automatically figure out the time stamps based on the video content
This might be a stretch but it would be amazing if you made a video where you set up a fresh "modular" system from a minimal installation of nixos to show the steps you personally take when setting up flakes, home manager and maybe a couple of modular files like some terminals and maybe browsers in separate files, all from a fresh install of minimal nixos with just config and hardware config files. I feel like that would be the single most helpful video made of nix yet
I am looking into Nix (mostly the package management) from a software development perspective. It would be very interesting to learn from you about creating & deploying packages - if that’s something you have experience in.
Anyways thank you for the awesome tutorial series ❤
Just joined your group Emmet. Thanks for sharing your knowledge about NixOS. Hoping I could learn more NixOS things from your excellent tutorials. Cheers.
Every time i watch a video on this channel i get surprised on how much this guy is deep in his knowledge and clear in his explanation! Two rare skills in one that makes a granmaster teacher. In my opinion the first one
Trying to get into NixOS... tried the pkg manager in another distro, but quite limited, so I'll just hop to NixOS.
But, how do you handle keys and secrets in your setup?
Great job!
great video as always!
Great video, the making your own installer bit soundsuseful for bridging the gap between basic linux and more declaritive style linux.
This is GREAT content.
But there are other things to consider, like the mix of multi-user and multi-machine installations and secret management. The later requires some key infrastructure pre-installed, which is sort of a pain for someone who just wants to install a system directly from a GitHub repo.
hey boss, love your stuff. i recently switched over to nixOS and the tutorials have been super useful getting off the ground. one thing i can't wrap my head around is getting doom emacs to build. i've looked at your config and tried to emulate it as closely as possible, but it always gets stuck installing emacs-straight-packages.json. would you consider making a vid walking through getting a barebones doom emacs installation up and working?
Great detailed explanations like always, I am curious to know your opinion on Snowfall as flake framework, would be great to have a video covering it from your perspective.
And then you manage your git config with NixOS. It's like a snake eating its own tail.
With regards to Git, I need to use different identities to push to different repos. I'm not familiar with NixOS, but this way to configure looks cool. I use a main conf file, and then different conf files per identity/directory. Is such a setup possible with maybe extraConfig? If Home Manager could defer to use an existing config that would be fine for me, too.
great video!
How can I omit hardware-configuration.nix so I can use the setup on multiple computers?
2:35, considering the heavy dependency on git, it really seems odd that git is not a prerequisite installed package for nixos...
Which software your using for virtual machines, please reply
Great content. @10 mins: I needed to "chown -R" for the subdirectories of .git. Are there advantages to displacing the config? I think you have to specify the path if you do do this....(?).
You could just leave your config folder and containing .git folder outside of /etc/nixos/ like /home/username/ and symlink from there with `ln -s ...`
Used that for a year without problems an that way you don't have to worry about ownership.
im following from your first video and out of nowhere your home.nix file now contains 'config' section and bunch others. Unable to find home.nix in your repo too
The safe directory part did not work for me:
/etc/nixos
❯ git add *
error: open("configuration.nix"): Permission denied
error: unable to index file 'configuration.nix'
fatal: adding files failed