• WereCat@lemmy.worldOP
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      14 minutes ago

      I know enough to know that this is blue vs red situation but not enough to know why. But your comment will likely start a war in this post soon :D

      • littleomid@feddit.org
        link
        fedilink
        English
        arrow-up
        4
        ·
        edit-2
        25 minutes ago

        Lives have been lost in this war, but you’d be crazy to think that Emacs is not the superior editor. (Half /s)

  • NewOldGuard@lemmy.ml
    link
    fedilink
    English
    arrow-up
    3
    ·
    52 minutes ago

    Tailscale is pretty straightforward because they have a config for it baked in, pretty sure it’s just services.tailscale.enable = true. But if you use it with the operator=$USER setting, note that you still need to run tailscale with sudo for your initial login before that works properly

    • Courant d'air 🍃@jlai.lu
      link
      fedilink
      arrow-up
      1
      ·
      15 minutes ago

      That’s what I like about OpenWrt, every update wipes everything but what’s explicitly configured. And the first update that doesn’t break anything is a rela satisfaction, meaning your whole configuration is contained in a few files listed somewhere

    • WereCat@lemmy.worldOP
      link
      fedilink
      arrow-up
      3
      ·
      2 hours ago

      This looks quite interesting but I honestly can’t think of any use case where I would find this useful for me. Also this seems like something best to try in VM first. I’ll keep this one in a bookmark though, may become useful later. Thanks!

      • lavember@programming.dev
        link
        fedilink
        arrow-up
        3
        ·
        2 hours ago

        impermanence forces you to be intentional with your system, where files are persisted, which is great for: hygiene like feeling like the computer was freshly formatted on each boot; using NixOS as intended by keeping things declarative (in other words, “nixmaxxing”); security also, to a lesser extent tbh, but it’d be protecting against malware nesting at impermanent paths

        • WereCat@lemmy.worldOP
          link
          fedilink
          arrow-up
          2
          ·
          1 hour ago

          I get it but for now I find this to be a bit too overly declarative for my taste. For now I’ll focus on things that actually matter for my use case but as I’ve said. I’m bookmarking this to try later in VM.

          • lavember@programming.dev
            link
            fedilink
            arrow-up
            1
            ·
            9 minutes ago

            whatever works for you! no need to do stuff just for the sake of it and its already great youre exploring nix

  • [object Object]@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    7
    ·
    3 hours ago

    NixOS synergises very well with terminal command aliases, you should check what commands you frequently use and put those into the config as well.

    • WereCat@lemmy.worldOP
      link
      fedilink
      arrow-up
      3
      ·
      3 hours ago

      Good point. I forgot to add that to my list but I did make one alias reflake for sudo nixos-rebuild switch --flake ~/nixos-dotfiles#nixos-werecat After I had to type this out for IDK how many times (and forgot about CTRL+R) it quickly got annoying :)

      • [object Object]@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        3
        ·
        edit-2
        3 hours ago

        Now that you mentioned Ctrl+R, also check out program named atuin. It makes the command search a bit more friendly, and you can also optionally sync command history. It has NixOS options, of course.

        • WereCat@lemmy.worldOP
          link
          fedilink
          arrow-up
          2
          ·
          edit-2
          17 minutes ago

          IDK why the Atuin config file that got generated is commented out in it’s entirety and nothing works. Right now I can’t be bothered to go trough the entire config and enable things one by one. From what I’ve tried nothing works and IDK why. CTRL+R does not invoke the Atuin search it still invokes the old one. I uncommented everything and still nothing seems to work. The atuin definitely responds to my commands in terminal though. I did run atuin setup as well.

          edit: OK, I’ve spent another 30min+ on this and I still can’t understand why it does not work. I’ve adjusted config, even got a custom config from other users and I can’t seem to be able to invoke it in the terminal besides using it’s commands which are the only thing that seem to work. I was able to make an account and login via terminal as well.

          edit2: Figured it out! I’ve tried mcfly and encountered the same issue. Turns out I needed to edit .bashrc which is read only even for sudo and even after chmod. So after beating my head against a wall I’ve realized that .bashrc is symlinked to my home.nix and that’s where I need to place my edits. So now mcfly runs fine and I’m assuming Atuin would as well since after looking at github I pretty much had to do the same edit for both.