!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

885 Members
180 Servers

Load older messages


SenderMessageTime
12 Aug 2021
@elonsroadster:matrix.orgelonsroadster this seems like it would be a pretty common thing, and something that nix develop should generally support 07:05:25
@elonsroadster:matrix.orgelonsroadsterbut yeah I guess I could do something like what flake-compat does to make shell.nix work and add the customizations there07:05:51
@mewp:nurupo.plmewpall right then, I'd import a customization.nix07:05:55
@elonsroadster:matrix.orgelonsroadsteryou mean in the flake07:06:15
@mewp:nurupo.plmewpthat would be an empty attrset in the repo, and added to gitignore07:06:18
@mewp:nurupo.plmewpyes07:06:20
@mewp:nurupo.plmewpand just change the filr07:06:28
@mewp:nurupo.plmewp* and just change the file07:06:32
@elonsroadster:matrix.orgelonsroadsteryeah07:06:37
@elonsroadster:matrix.orgelonsroadsterthats what i did here: https://github.com/xmonad/xmonad-contrib/pull/58907:06:41
@elonsroadster:matrix.orgelonsroadsterthe thing that really sucks about it07:06:46
@elonsroadster:matrix.orgelonsroadsteris that actually the customization file07:06:57
@elonsroadster:matrix.orgelonsroadsteronly works if you git add it07:07:03
@elonsroadster:matrix.orgelonsroadsterbecause remember, flakes actually use git to decide which files get included when it is constructing the flake07:07:36
@mewp:nurupo.plmewpyes, but only which files07:07:50
@mewp:nurupo.plmewpnot which revisions07:07:55
@mewp:nurupo.plmewpyou can have local modifications07:08:03
@elonsroadster:matrix.orgelonsroadstersure so yes, you dont have to commit hte file07:08:06
@elonsroadster:matrix.orgelonsroadsterbut its annoying that you have to git add it07:08:12
@mewp:nurupo.plmewpnot really07:08:23
@elonsroadster:matrix.orgelonsroadsterokay well its annoying TO ME07:08:36
@mewp:nurupo.plmewpadd an empty file, commit it abd add ut to gitignore07:08:39
@mewp:nurupo.plmewp* add an empty file, commit it and add ut to gitignore07:08:46
@elonsroadster:matrix.orgelonsroadsteradding it to git ignore if you commit it is not very useful07:09:11
@elonsroadster:matrix.orgelonsroadsterand if you commit the file, its not much better than just going in and modifying the flake in place, right?07:09:30
@elonsroadster:matrix.orgelonsroadsterI'm just trying to avoid constantly needing to e.g. stash my modifications for my shell07:09:48
@elonsroadster:matrix.orgelonsroadsterevery time i switch branches07:09:52
@elonsroadster:matrix.orgelonsroadsterthat is what i was previously doing07:09:59
@elonsroadster:matrix.orgelonsroadsterbut then that starts to conflict with other peoples changes07:10:09
@elonsroadster:matrix.orgelonsroadsterits just not really a tidy solution07:10:19

Show newer messages


Back to Room ListRoom Version: 6