The ultimate dotfiles setup

Поделиться
HTML-код
  • Опубликовано: 17 окт 2024
  • In this video we take a look at what I'm modestly deeming the 'ultimate dotfile setup' which manages both your applications themselves and their configurations.
    This is primarily setup using:
    Chezmoi: www.chezmoi.io/
    Ansible: github.com/ans...
    Here is my dotfiles repo if you want to use as a reference for your own: github.com/log...
    #dotfiles #chezmoi #ansible

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

  • @propbreakerfpv
    @propbreakerfpv 9 месяцев назад +24

    I have been trying to find a good way to do this for YEARS. this is by fare the best solution i have come across. will done

  • @viktorhabchak470
    @viktorhabchak470 5 месяцев назад +1

    years back i've built a simple custom dotfiles manager myself in ruby using erb templates and ansible playbook. don't have to maintain that anymore, this is a perfect find for me!

  • @danielstellmon5330
    @danielstellmon5330 10 месяцев назад +4

    I will have to play with this and compare it to my current stow process.

  • @benmcnicholl
    @benmcnicholl 8 месяцев назад +3

    This video is great. I love your delivery and the content. Keep the videos coming!

  • @unforkableonion5081
    @unforkableonion5081 10 месяцев назад +8

    last few months i was so frustrated by my aliases being constantly out of sync...finally time to rework on my 2015 totally out of date dotfiles repo! really solid and easy to update workflow, thx for sharing :)

  • @ZacMagee
    @ZacMagee 7 месяцев назад +3

    Love this. I'm a new Linux user and this has changed my life!

  • @bryankruman
    @bryankruman 10 месяцев назад +8

    Just stumbled upon your video/channel in my recommendations.
    A: Very cool setup you have here, I think I'll be forking your repo and trying it myself shortly! You know, I could see this as a larger "profile manager" project if a community builds around it. Would be cool to have a script which helps you configure various items and generate a repo like this to enable easier adoption and maintenance for example... There may be better existing profile/config management solutions which I'm not aware of, but otherwise this would be a great start towards a product around it. I'd be interested in contributing to something like which I could use for my own purposes too.
    B: Nice production quality on your videos man. You've got style, well-thought out content, and a great voice for this kind of thing. Subscribed and will be checking out more of your content for sure. Keep it up, I reckon more people will join soon with this kind of content.

    • @CODE_IS_EVERYTHING
      @CODE_IS_EVERYTHING  10 месяцев назад +4

      Hey Bryan, thanks, that means a lot!
      And that is a good idea. Will need to think about what that could look like. My immediate thought is it could scaffold out a new repo with the necessary setup scripts that are system agnostic, so it would setup ansible and whatever else on different linux distros and mac. And then depending on which systems you plan on using, it can scaffold out an ansible playbook (or maybe separate playbooks per system type) that can be a starting point for whatever you want. And for each of those playbooks, it would have the onchange scripts for chezmoi hooked up.
      I'll need to do some more thinking, but that could be a fun project. If I do end up doing that, I'd definitely be happy for some collaboration.
      And I had been slacking this past year on videos, but I'm getting back into it and have a bunch planned.

  • @Danielo515
    @Danielo515 8 месяцев назад +1

    Better explanation than any of the official docs. We'll done

  • @Peaky17
    @Peaky17 6 месяцев назад +1

    Amazing video! Basically a lite version of Nix but without the hassle of daily driving NixOS :) Have you looked in to using stow instead of chezmoi for the dotfile managing part?

    • @CODE_IS_EVERYTHING
      @CODE_IS_EVERYTHING  6 месяцев назад

      I originally played around with Stow, but I really liked the triggers that chezmoi came with. Though incidentally I joined the dark side and have gone all in on NixOS 😅

  • @Stefan-Streit
    @Stefan-Streit 10 месяцев назад +2

    Finally I found a proper explanation of how to integrate chezmoi with ansible, unfortunately I'm to "slow or simple" to figure it out by myself, but now I've the starting point I searched/waited for. - Thank you very much. -> My plan to roll out against new installs of Mac(s), VMs.

    • @CODE_IS_EVERYTHING
      @CODE_IS_EVERYTHING  10 месяцев назад +1

      Awesome, glad it helped! And don’t feel bad, this is probably like my 5th or 6th time building out a dotfiles repo and this is the first time it’s actually worked the way I wanted.

  • @psecretpseudonym4801
    @psecretpseudonym4801 6 месяцев назад

    This is definitely the best solution I’ve seen so far.

  • @TreeLuvBurdpu
    @TreeLuvBurdpu 9 месяцев назад

    Omg I didn't even know this was possible but i had been wishing really really hard.

  • @MrXankiller
    @MrXankiller 10 месяцев назад +1

    Beautiful, I was looking for a tool to manage my dotfiles for month and every videos I watched didn't convince me... until now :^)
    I was using a git bare repo, but I find it tedious to maintain
    And now I can use a tool that has a french name, so... tant mieux comme ça je me sens un peu comme à la maison ;)
    A+, merci l'ami

    • @CODE_IS_EVERYTHING
      @CODE_IS_EVERYTHING  10 месяцев назад

      That is good to hear! And gotta love a project with a good name.

  • @Daniel15au
    @Daniel15au 5 месяцев назад

    Have you tried using this for UI config too, for example for GNOME or KDE settings, VS Code settings, etc? I've done something similar for regular dotfiles (like shell config) but I want to keep UI config in sync too.

    • @CODE_IS_EVERYTHING
      @CODE_IS_EVERYTHING  5 месяцев назад

      The only challenge I’ve run into is that some UI tools don’t have a great file/cli based config interface. Like with GNOME you’ll probably end up using dconf to dump the current config values and then use dconf load as part of the dot files automation to keep those changes in sync. But other UI tools will just use a config file you can edit, so those are easier to jump in the repo.

  • @TreeLuvBurdpu
    @TreeLuvBurdpu 8 месяцев назад

    I'm still not sure what Ansible buys you. If i run chezmoi update it seems to detect changes, I think. I like all the run-once and roles that Ansible has, but if i run Chezmoi without it, what will i be missing?

    • @CODE_IS_EVERYTHING
      @CODE_IS_EVERYTHING  8 месяцев назад +3

      Chezmoi is primarily a dotfile manager, so it doesn’t have any native way of installing applications, so that is where ansible comes in. I mean technically, if you wanted to, you could just use a shell script that runs your package manager to install your desired packages. But ansible just makes all that nicer.

    • @Serizon_
      @Serizon_ 5 месяцев назад

      I am pretty sure you are underutilized ansible and there might be netter software to automatically install software

  • @sphyrnidae6749
    @sphyrnidae6749 8 месяцев назад

    Jesus Christ, your videos are amazing!❤ PLS MORE!!

  • @Redyf
    @Redyf 10 месяцев назад +40

    NixOS: "Am I a joke to u?"

    • @malcolmkahora5318
      @malcolmkahora5318 10 месяцев назад +11

      For real Nix with a single flake, makes dotfiles so trivial.

    • @CrazyLuke11
      @CrazyLuke11 9 месяцев назад +2

      Literally thought the same! Home manager is just so overpowered 😂

    • @manwe_sulimo
      @manwe_sulimo 9 месяцев назад

      😳

    • @jyothishkumar3098
      @jyothishkumar3098 9 месяцев назад +8

      Having to learn Nix language is holding me off for the moment..

    • @ethernet764
      @ethernet764 9 месяцев назад

      @@malcolmkahora5318 Any resources that details how to do this? I already use nixos and home manager, but I don't use it to manage my dotfiles yet.

  • @user-eg6nq7qt8c
    @user-eg6nq7qt8c 25 дней назад

    I just have a small script that pulls a dotfiles repo, symlinks and the rest is shoved into distrobox!

  • @Pervy
    @Pervy 6 месяцев назад

    Idk why I didn't think to use ansible with my Chezmoi setup..... out with bash in with ansible!!

  • @pillmuncher67
    @pillmuncher67 10 месяцев назад +3

    I'm using the _git bare_ method and I'm pretty happy with it.

    • @_Holy_Lance_
      @_Holy_Lance_ 3 месяца назад

      I am using gnu stow and for now is good enough. Chezmoi is better but at the moment is an overkill.

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

      ​​@@_Holy_Lance_I hate the symlink mess it creates

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

    but chemoi does allows you to add files outside of Home Directory like fstab

  • @youseflourdx6531
    @youseflourdx6531 10 месяцев назад

    Wow!
    What a nice thing to have

    • @CODE_IS_EVERYTHING
      @CODE_IS_EVERYTHING  10 месяцев назад +1

      Agreed, it makes life way easier when you work across different machines

  • @youngreda4410
    @youngreda4410 Месяц назад

    your voice is hella nice bro

  • @Glicole_
    @Glicole_ 3 месяца назад

    nice

  • @mjc955
    @mjc955 5 месяцев назад

    and here i was thinking that gnu stow was a great solution

    • @CODE_IS_EVERYTHING
      @CODE_IS_EVERYTHING  5 месяцев назад +1

      If all you need is to manage the dotfiles themselves stow is a solid option. But if you want to start getting fancy, I think chezmoi is a better pick.

    • @mjc955
      @mjc955 5 месяцев назад

      @@CODE_IS_EVERYTHING honestly i think the key takeaway from this video for me was “i should learn ansible”

  • @jordonfrancisco9270
    @jordonfrancisco9270 9 месяцев назад

    Is that stock gnome?

    • @CODE_IS_EVERYTHING
      @CODE_IS_EVERYTHING  9 месяцев назад

      Yeah it is. I’m a fan of the newer stock gnome, especially with the dark mode.

  • @alexstone691
    @alexstone691 8 месяцев назад

    I used to use chezmoi but then i recreated my dotfiles from scratch without it using shell scripts and i might just switch to ansiblr

    • @alexstone691
      @alexstone691 8 месяцев назад

      I ported almost everything to ansible, and i must say its pretty good, i like that i can run it however many times i want

    • @CODE_IS_EVERYTHING
      @CODE_IS_EVERYTHING  8 месяцев назад +1

      Awesome, I'm glad to hear it. Having that idempotency is key for things like this where you'll run it over and over.

    • @alexstone691
      @alexstone691 8 месяцев назад

      @@CODE_IS_EVERYTHING Only thing that is bugging me is a nice solution to automate my distrobox container

  • @vaisakh_km
    @vaisakh_km 10 месяцев назад +3

    :) nothing beat nix....

    • @CODE_IS_EVERYTHING
      @CODE_IS_EVERYTHING  10 месяцев назад +8

      The things nix can do is awesome, though in the past I spent too long getting nowhere with it lol

    • @vaisakh_km
      @vaisakh_km 10 месяцев назад +1

      @@CODE_IS_EVERYTHING XD ya... fair...