| 12 Aug 2021 |
elonsroadster | this seems like it would be a pretty common thing, and something that nix develop should generally support | 07:05:25 |
elonsroadster | but yeah I guess I could do something like what flake-compat does to make shell.nix work and add the customizations there | 07:05:51 |
mewp | all right then, I'd import a customization.nix | 07:05:55 |
elonsroadster | you mean in the flake | 07:06:15 |
mewp | that would be an empty attrset in the repo, and added to gitignore | 07:06:18 |
mewp | yes | 07:06:20 |
mewp | and just change the filr | 07:06:28 |
mewp | * and just change the file | 07:06:32 |
elonsroadster | yeah | 07:06:37 |
elonsroadster | thats what i did here: https://github.com/xmonad/xmonad-contrib/pull/589 | 07:06:41 |
elonsroadster | the thing that really sucks about it | 07:06:46 |
elonsroadster | is that actually the customization file | 07:06:57 |
elonsroadster | only works if you git add it | 07:07:03 |
elonsroadster | because remember, flakes actually use git to decide which files get included when it is constructing the flake | 07:07:36 |
mewp | yes, but only which files | 07:07:50 |
mewp | not which revisions | 07:07:55 |
mewp | you can have local modifications | 07:08:03 |
elonsroadster | sure so yes, you dont have to commit hte file | 07:08:06 |
elonsroadster | but its annoying that you have to git add it | 07:08:12 |
mewp | not really | 07:08:23 |
elonsroadster | okay well its annoying TO ME | 07:08:36 |
mewp | add an empty file, commit it abd add ut to gitignore | 07:08:39 |
mewp | * add an empty file, commit it and add ut to gitignore | 07:08:46 |
elonsroadster | adding it to git ignore if you commit it is not very useful | 07:09:11 |
elonsroadster | and if you commit the file, its not much better than just going in and modifying the flake in place, right? | 07:09:30 |
elonsroadster | I'm just trying to avoid constantly needing to e.g. stash my modifications for my shell | 07:09:48 |
elonsroadster | every time i switch branches | 07:09:52 |
elonsroadster | that is what i was previously doing | 07:09:59 |
elonsroadster | but then that starts to conflict with other peoples changes | 07:10:09 |
elonsroadster | its just not really a tidy solution | 07:10:19 |