Join 2000+ subscribers getting one dev/sec/ops tip every Friday: signup.omerxx.com
@sujezz
2 ай бұрын
I personally don't like stow. I prefer doing a bare git repo in ~/.dotfiles
@clayratliff7727
2 ай бұрын
I was wondering if you had any issues setting up a local workbench using the docker template. I have no issue using a GCP-based instance but the local docker instance is throwing fits because it can't find the "host-gateway". I usually use podman so I'm running a fresh install of docket and would have expected the defaults to just work out of the box. Great video. I've been using stow for dotfile management for years but coder is about to take it to a whole new level.
@devopstoolbox
2 ай бұрын
Happy to hear! Didn't encounter any of the issues you mentioned...
@clayratliff7727
2 ай бұрын
@@devopstoolbox I eventually got around to looking at the docker starter template and just commented out the "host" section of "docker_container" element. I assume the template was built for a linux host since windows and Mac don't need it.
@alexstone691
Ай бұрын
I have very complicated dotfiles eith ansible, but they are all in one directory that can be used with stow, coder or whatever Coder seems promising but i hate how complicated it is to setup locally and has to use a relay server even though i dont need to access it outside my network
@devopstoolbox
Ай бұрын
You don't have to of course. I think stow and a separate repo is 90% of what you need. If you wait a couple of weeks, Il'l be releasing a video covering dotfiles with Home manager
@alexstone691
Ай бұрын
@@devopstoolbox I definitely feel like devcontainers spec is the future, but sad the cli is still work in progress
@reuben2311
2 ай бұрын
Does zsh on macos automatically respect XDG_CONFIG_HOME? I tried moving zshrc to ~/.config/zshrc/.zshrc but it looks like the configuration file is not being loaded anymore
@gorr_av
2 ай бұрын
You need to add env variable export ZDOTDIR="$XDG_CONFIG_HOME/zshrc" to /etc/zshenv (which affects all users) or ~/.zshenv (which affects only your user) and source it ofc.
@j4yd34d5
2 ай бұрын
@@gorr_av Additional note for anybody having trouble setting zsh env variables on macos: Although they should be set in /etc/zshenv Apple declares HISTSIZE, HISTFILE, and maybe a few others in /etc/zshrc This is important to know because zsh files are sourced in order of root, user, root, user etc instead of root files followed by user files. So if you set HISTSIZE in ~/.zshenv its value will be over written by the /etc/zshrc file which is sourced after ~/.zshenv TLDR unless you know what you're doing just set env variables ~/.zshrc to avoid unnecessary issues.
@hanzomaster
2 ай бұрын
What is the plugin that you use for finding URL in terminal at 7:35? That looks very cool
@vishaldongre9557
2 ай бұрын
Fzf
@devopstoolbox
2 ай бұрын
github.com/wfxr/tmux-fzf-url
@luiscampos6064
2 ай бұрын
Luckily stow follows the philosophy of programs that do one thing and do it well. Maybe there are better programmes out there, but if you have to learn new things all the time, don't let it be dotfile manager.
@vikingthedude
2 ай бұрын
One problem with symlinked directories is when non config files are put into the directory. Like cache files or log files by various programs. These files end up polluting the git repo, and we don’t know ahead of time which such files we’d need to gitignore. Thats why i use the -no-folding flag when i stow
@guidon.5413
2 ай бұрын
A program putting logs into the config directory to me (!) is either misconfigured or not worth using since it violates sane programming on the most basic level. Same for cache files.
@vikingthedude
2 ай бұрын
Say that to vscode settings on a mac
@guidon.5413
2 ай бұрын
@@vikingthedude That's what I'm saying. VSCode is not worth using (to me).
@Flackon
2 ай бұрын
@@vikingthedude you only need to commit the User dir for vscode. The extra files problem is easily solved with gitignore (you are checking what gets staged into git before committing, right?)
@PetrSzturc
2 ай бұрын
If I understood correctly, coder is similar service to gitpod, though to me gitpod seems bit easier to setup. Though I havent tried coder yet.
@rebelg
2 ай бұрын
Home Manager from the Nix ecosystem is the best dotfile manager by far
@ZiRo815
2 ай бұрын
Why? Rebuilding every time you change your config is a pretty bad workflow.
@Flackon
2 ай бұрын
@@ZiRo815 Reproducibility and integration, mostly. I agree it's a pretty bad workflow, so you... shouldn't do that. You can use regular dotfiles while you're changing stuff in your config, and port it to home-manager once you're done and happy with it. Otherwise it will be too slow.
@ZiRo815
2 ай бұрын
@@Flackon I find it kinda awkward to have some config done one way and some config done another way. I currently symlink everything with home manager, but it’s a little awkward. I’m thinking about using Stow for my user config instead.
@Flackon
2 ай бұрын
@@ZiRo815 My idea is that you only have the straight config when you're setting up a program for the first time, but when you actually commit to your dotfiles repo, you port it to home-manager (either let it link to the nix store, or use a module). That way you don't really mix methods
@ZiRo815
2 ай бұрын
@@Flackon yeah, I get it. My tools are configured often. Nix makes making changing the config more effort than I want it to be, dragging me into the world of configuration management when I want to focus on whatever I’m trying to achieve. I want the configuration of my at-hand tools to be light touch but I don’t mind the configuration of my systems being a heavier lift. Maybe this attitude will shift as I become more fluent with nix, but managing user configs with nix feels like a PITA when I’m using it, especially when it comes to translating what I want as per original tool doc-specified changes into home manager modules docs-specified changes into the actual changes I need to make to home manager config.
@niksingh710
2 ай бұрын
XD i was about to say home-manager but you mentioned it already.
@thales-maciel
2 ай бұрын
or you can just use rsync and be done with it
@rujn
2 ай бұрын
So I recently dove into nixos. My approach was to use hard links to bring a known set of dot files into my git repo within /etc/nixos, so they are versioned in one place. Stow only manages symlinks and git doesn't natively resolve symlinks.
@gungun974
2 ай бұрын
Interesting approach. Have you considered using home manager as a nixos module to manage your home directory or do you feel hard links are good enough for you ?
@rujn
2 ай бұрын
I will move to home manager eventually. My use case is to version control my whole setup in a single repo. I wonder if home manager can support this...
@biscotty6669
2 ай бұрын
@@rujnyes it can. You might explore using flakes with home manager, which allows you to create and build everything, even the system configuration.nix, using nix modules to generate all your configs from a single $HOME/ directory tree. Vimjoyer has a great video on how to set it up. Also, in the nix way, the configuration is not written in a discreet dotfile anyway but in a nix module which then generates and places the appropriate dotfile. In other words, linking of configs is a non-issue.
@ZiRo815
2 ай бұрын
@@rujn yes it can. The question is whether you want to rebuild nix every time you change your config.
@rujn
2 ай бұрын
Beautiful, yes I will rebuild every time. Maybe this is overkill but I switch machines often and want the same setup. I am always tweaking and tinkering 👍
@AestheticAMV
2 ай бұрын
what is the 'ls" program you use?
@ichanmich
2 ай бұрын
probably `eza`
@TwilightTrekker1
2 ай бұрын
Thanks for making this. I can't explain why, but for some reason I have a ton of procrastination around dotfiles, the concept backing them up, managing them, I feel like it's a brick wall for me to move forward for some crazy reason lol.
@Flackon
2 ай бұрын
@@TwilightTrekker1 going over that wall is worth it. Once you have it set up, it takes very little maintenance. I can go weeks between commits to my dotfiles. Also, with stow you can just gradually build up as you need it. Don’t need to rearrange your entire config dir in one go.
@jizhang2407
2 ай бұрын
Like first, digest later. And, Thanks.
@艾曦-e4g
2 ай бұрын
Love your video! I want to know your ideas about coder, devpod, nix-based method for managing the dotfile and dev env. Thank you!
@hungvx-dev
2 ай бұрын
What browser are you using? How to make it transparent? kzitem.info/news/bejne/uKaHm42fhmmjd2km42s
@alexferreira1534
2 ай бұрын
Devaju?
@ViCantWin
2 ай бұрын
PLS MORE NIX VIDEOS!!
@naranyala_dev
2 ай бұрын
chezmoi, chezmoi, chezmoi
@atarShirim
2 ай бұрын
absolutely. it has a great, powerful yet simple templating system. CHEZMOI is king!
@andrukthegreat
2 ай бұрын
Wht you re doin has no sense. Need to learn more bout the file systsm, before symlinking files and directories that will be filled w other files that should be non tampered with. Your stow is totally wrong
Пікірлер: 82