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.
  • НаукаНаука

Комментарии • 25

  • @spencerallen323
    @spencerallen323 2 месяца назад +29

    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.

    • @SimplyWondering
      @SimplyWondering 2 месяца назад +1

      I think there are some AI tools that will auto generate sections for you if you want to try that.

    • @spencerallen323
      @spencerallen323 2 месяца назад +1

      @@SimplyWondering Perhaps, but I can't think of one that's as entertaining as this guy.

    • @notactuallyarealperson2267
      @notactuallyarealperson2267 2 месяца назад +5

      @@spencerallen323I think they meant an AI that would automatically figure out the time stamps based on the video content

  • @capataina5087
    @capataina5087 2 месяца назад +10

    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

  • @heysebi_
    @heysebi_ 2 месяца назад +3

    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 ❤

  • @123fourU
    @123fourU 2 месяца назад +1

    Just joined your group Emmet. Thanks for sharing your knowledge about NixOS. Hoping I could learn more NixOS things from your excellent tutorials. Cheers.

  • @StefanoPompa
    @StefanoPompa 2 месяца назад +1

    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

  • @noriller
    @noriller 2 месяца назад +6

    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?

  • @ChuckNorris-lf6vo
    @ChuckNorris-lf6vo 2 месяца назад +2

    Great job!

  • @shaazn9121
    @shaazn9121 2 месяца назад +3

    great video as always!

  • @Desmodious
    @Desmodious 2 месяца назад +1

    Great video, the making your own installer bit soundsuseful for bridging the gap between basic linux and more declaritive style linux.

  •  20 дней назад

    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.

  • @wave_s6782
    @wave_s6782 2 месяца назад +1

    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?

  • @droydi
    @droydi 2 месяца назад

    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.

  • @timseguine2
    @timseguine2 2 месяца назад +2

    And then you manage your git config with NixOS. It's like a snake eating its own tail.

  • @BrazenNL
    @BrazenNL 2 месяца назад +2

    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.

  • @sascha1461
    @sascha1461 2 месяца назад

    great video!

  • @summerWTFE
    @summerWTFE 2 месяца назад

    How can I omit hardware-configuration.nix so I can use the setup on multiple computers?

  • @adrianscarlett
    @adrianscarlett 2 дня назад

    2:35, considering the heavy dependency on git, it really seems odd that git is not a prerequisite installed package for nixos...

  • @shadowelite-sec
    @shadowelite-sec Месяц назад

    Which software your using for virtual machines, please reply

  • @marcuswest4572
    @marcuswest4572 2 месяца назад

    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....(?).

    • @1Caja
      @1Caja 19 дней назад

      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.

  • @karthikeyanbalasubramanian7305
    @karthikeyanbalasubramanian7305 17 дней назад

    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

  • @ari1novo
    @ari1novo 16 дней назад

    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