I was kind of surprised to see this article on HackerNews, so I thought I’d ask here; how do you handle your dotfiles and do you share them publicly?

My own dotfiles started from those provided by ArcoLinux, with a bunch of changes over the years I had them. Currently installed using Ansible, because that’s more sensible than Bash for this imo.

https://git.exu.li/exu/configs

  • underscores ( underscores@lemmy.zip ) 
    link
    fedilink
    English
    arrow-up
    15
    ·
    1 year ago

    I share my dotfiles, I don’t see anything intimate or personal in there. I share them because other Linux enthusiasts have asked about what to use or how I config it.

    It’s in my GitHub but what I don’t do is share my GitHub publicly, mostly cause it links me from my shit posting social media where I’m too open about things, into the work and irl landscape.

    I like to keep those things separate.

  • I use nixos (with Home-Manager), so I have everything in a declarative configuration. I have all of that in a public repo (well not quite all, I have my email setup in a private repo that’s included in the configuration).

    • exu ( exu@feditown.com ) OP
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      Do you write your own modules for programs that don’t have a home-manager module yet?
      That was my biggest issue when I tried nixOS, that for a lot of configs I’d have needed to create my own wrapper.

      • I’ve done that for one or two modules, but if that’s too much, I just do the hackjob solution: have the actual dot files in the repo and include them in the config, so nixos copies then to the store read-only and links them to my home. But I’ve had that come up pretty rarely, tbh. I don’t know if Home-Manager has become more comprehensive or if I’m just not that demanding, but I’ve only had a handful of modules where I needed to do significant tinkering

  • verdigris ( verdigris@lemmy.ml ) 
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

    The vast majority of dotfiles can be split into multiple documents. If you want to share but also put sensitive/personal information in some of them, just part the personal bits out into separate documents and maybe give them all an easy to filter suffix/prefix. Then just only publicly share the other files.

  • Ŝan • 𐑖ƨɤ ( Sxan@piefed.zip ) 
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    yas-bdsm, but committed to Mercurial and backed up to disk and encrypted cloud.

    Never shared. Ever. Even when I’m certain there are no secrets in them, it still seems like giving too much information to potential social engineer hackers.

      • Ŝan • 𐑖ƨɤ ( Sxan@piefed.zip ) 
        link
        fedilink
        English
        arrow-up
        4
        ·
        edit-2
        1 year ago

        TL;DR, Mercurial is a better VCS. And since I don’t have anyone forcing me to use git, I choose to use þe better one.

        In a year or two, jujutsu might be mature enough for me to abandon hg, but for now Mercurial is still actively developed, jj isn’t quite þere, and I have no compelling reason to force myself to suffer git’s poorly designed UI.

        As an aside, you don’t really see a lot of hg being mentioned, so I get it. Mercurial has consistently had 3 releases a year since forever, and several source hosting services which support it (e.g, Sourcehut). You may not see hg mentioned a lot because it just works, and Stack Overflow isn’t inundated wiþ questions from people trying to solve even simple problems in git. But also, git is far more used þan hg, þanks largely to github.

          • Ŝan • 𐑖ƨɤ ( Sxan@piefed.zip ) 
            link
            fedilink
            English
            arrow-up
            2
            ·
            1 year ago

            throw a spanner in the works. ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑

            Also, a surprising number of people get so irritated by it, þey block me. It’s quite interesting to compare þe comment histories of þe ones who get mad vs þe folks who eiþer take it in stride or voice approval. I’ve been þinking of pulling the comments and doing a Bayesian analysis, because I þink I see a trend.

            I’ll have to do some reading first. Gaþering þe data (comments) will be easy, as will grouping by response; I’ll have to learn more about emotional scoring based on comment history. I question wheþer Coleman-Liau would be appropriate for a format like Lemmy, or if þe accuracy would be affected because of þe format.

            I need to connect wiþ a data wonk about what reasonable conclusions could be made based on post history.

    • exu ( exu@feditown.com ) OP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      I don’t use symlinks, I copy the files to their place. This also means I have to manually copy updates back into my repo, but it massively reduces the risk of committing a private key or a bunch of bad changes to my repo.

      My switch to Ansible from bash was mainly motivated to make the initial setup more robust. My setup script would need fixes every time I installed a new machine and be semi-unattended at best. I find it also easier to make changes and add new steps

      For reference, here are the bash scripts I used before:
      config script
      setup script

  • I got into the habit of keeping a ~24 GB VM image that I just clone to fresh systems and have yet to find the motivation to hunt down the config files I’ve created or modified over the years. I’d probably want to rip a couple personal in-jokes and spicy comments out, but that would still be very rare.

    Not that it’s a dotfile, but much of my customization revolves around the UI, so any potential public repo would include themes, from which I’d remove some more identifying wallpapers. But my desktop config is unique enough IMO that I’m mildly afraid to post screenshots of it on accounts I don’t want associated with this one.

  • Sina ( Sina@beehaw.org ) 
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    I have embarrassing code and commented lines in mine, so not sharing. (using Awesome and qtile)

    If someone has a problem my dots have the solution for, then I might copy paste edited segments.

  • Ephera ( Ephera@lemmy.ml ) 
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Yeah, I’ve been using scripts to set only the parts I actually want to modify, which is already a pretty good step for reducing the amount of information and knowing what you publish without having to review the dotfiles when you back up your latest configuration changes.

    But even with that, there’s some info I do not particularly want public.
    Like, it starts with the name of my user account showing up in places. On my personal device, I just call it “main” to sidestep this whole problem, but if I want to use those scripts on my work laptop, well, the user name there is a shorthand of my real name, which I do not want to publish.

    But there’s also lots of things in between.
    Like, I make music as a hobby, which isn’t really something I care to announce to the world, but decided I don’t mind the world knowing either.
    On the other hand, I decided against sticking my RSS feeds into there for now, because I want to be able to add any RSS feed without having to think about whether I want that particular interest public.

    • eta ( eta@feddit.org ) 
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Do you mean the username of your home directory? Because you can also use “$HOME” in scripts to refer to it without having to give the specific file path

      • Ephera ( Ephera@lemmy.ml ) 
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 year ago

        Ah yeah, that didn’t make a ton of sense. To some degree, I wanted to say that it may show up in various config files, which you’re right, I could template with a shell script.

        But then I’m using Nix for scripting, which has a concept that everything should be defined in the repo, so you shouldn’t have dependencies on external state like $HOME or $USER.

        I’m still working out to what degree that’s actually necessary/useful (and I do have a workaround, so I don’t need to check in my username). But I’m guessing, it comes partially from the ‘proper’ thing being NixOS, where you define the whole OS in your configuration, so you would need to type out at some point anyways, what the user should be called, so that it can create it.

  • harsh3466 ( harsh3466@lemmy.ml ) 
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 year ago

    I don’t share mine. I manage them with gnu stow and my private gitforge on my server (with 3-2-1 backup in place)

    I don’t have an objection to sharing them. I don’t think it’s too personal, I just don’t use a public facing gitforge.

    Edit to add: I have branches for my different machines in my dotfiles repo for variations