ChanServ changed the topic of #home-manager to: Support and discussion around the Home Manager project (https://github.com/nix-community/home-manager) | Logs: https://logs.nix.samueldr.com/home-manager
fuzzypixelz has quit [Quit: fuzzypixelz]
joesventek has quit [Quit: Quit]
joesventek has joined #home-manager
joesventek has quit [Client Quit]
joesventek has joined #home-manager
joesventek has quit [Client Quit]
joesventek has joined #home-manager
joesventek has quit [Client Quit]
joesventek has joined #home-manager
fuzzypixelz has joined #home-manager
rajivr has joined #home-manager
fuzzypixelz has quit [Ping timeout: 240 seconds]
leex has quit [Ping timeout: 260 seconds]
o1lo01ol1o has joined #home-manager
o1lo01ol1o has quit [Ping timeout: 272 seconds]
o1lo01ol1o has joined #home-manager
o1lo01ol1o has quit [Ping timeout: 256 seconds]
benkolera has quit [Quit: Idle for 30+ days]
niacdoial has joined #home-manager
o1lo01ol1o has joined #home-manager
niacdoial has quit [Ping timeout: 260 seconds]
cole-h has quit [Ping timeout: 260 seconds]
justan0theruser has quit [Ping timeout: 268 seconds]
niacdoial has joined #home-manager
__monty__ has joined #home-manager
justan0theruser has joined #home-manager
Synthetica has joined #home-manager
niacdoial has quit [Ping timeout: 264 seconds]
fuzzypixelz has joined #home-manager
justan0theruser has quit [Ping timeout: 240 seconds]
justanotheruser has joined #home-manager
niacdoial has joined #home-manager
niacdoial has quit [Ping timeout: 260 seconds]
justanotheruser has quit [Read error: Connection reset by peer]
justanotheruser has joined #home-manager
fuzzypixelz has quit [Quit: fuzzypixelz]
justanotheruser has quit [Ping timeout: 240 seconds]
fuzzypixelz has joined #home-manager
niacdoial has joined #home-manager
o1lo01ol1o has quit [Remote host closed the connection]
AlpineLlama has quit [Ping timeout: 260 seconds]
niacdoial has quit [Ping timeout: 260 seconds]
cole-h has joined #home-manager
rajivr has quit [Quit: Connection closed for inactivity]
o1lo01ol1o has joined #home-manager
niacdoial has joined #home-manager
o1lo01ol1o has quit [Ping timeout: 240 seconds]
blaggacao has joined #home-manager
<blaggacao> I'd like to help get CSIu support for alacritty into hm: https://github.com/alexherbo2/alacritty-extended-keys/blob/master/keys.yml
<blaggacao> What should be my plan?
o1lo01ol1o has joined #home-manager
<energizer> anybody know where i can put vscode user snippets in my config?
o1lo01ol1o has quit [Remote host closed the connection]
<cole-h> `key_bindings = [{ key = "H"; mods = "Control"; chars = "\\x1b[104;5u"; }, { ... }]`
<cole-h> etc
<blaggacao> aha, so this can be plain nix, too. beeing of generic usr
<blaggacao> r
<blaggacao> e, I'd like to open a PR to HM. I'd want to implement `alacritty.CSIuSupport` and if enabled merge
<blaggacao> But in order to easily stay up to date with alexherbo upstream, it should load it directly from the remote git.
<cole-h> That's not going to be easy, since the file is written as json (since yaml is a superset of json)
<blaggacao> Actually, this can be generalised even more as a terminal-independent CSIu implementation, but I would have even less idea how to do it
<cole-h> How likely are things to change with CSIu?
<blaggacao> Evolution ou
{^_^} has quit [Remote host closed the connection]
<blaggacao> Evolution of alexherbo's repo will reflect additional use cases as they are leanred of.
<cole-h> If it's fetched from the remote, then I don't see a difference between updating a hash and rev vs. updating the actual keys themselves
{^_^} has joined #home-manager
<cole-h> (i.e. I, personally, would rather they be hardcoded than fetched)
<cole-h> This would simplify implementation (no need to find a way to merge JSON with YAML) as well as allow users to see what the keys are being defined as without needing to go to a remote source
<blaggacao> ... the argument being that home-manager be the source of truth and probably the nix community is a better fundament than kakoune community in terms of evolution, so yes.
<blaggacao> agree
<blaggacao> I'll try to put a draft together in a minute, would be nice to get quick feedback as soon as I have somthing...
<cole-h> Well
<cole-h> I guess it would be easier to merge the two once imports are available in a release
<blaggacao> What do you mean with that?
<cole-h> You could fetch the keys.yml from GitHub, drop the file into ~/.config/alacritty/csi-u.yml or something, and then `import csi-u.yml` or whatever the syntax is
<cole-h> (But that would gate the feature on a specific alacritty version which probably isn't the best idea)
<blaggacao> Ah, I see, you mean if/once alacritty allows imports...
<cole-h> It already does
<cole-h> It just hasn't been in a released version yet
<blaggacao> OK, but I think better use the nix native merge power. NOthing beats nix (or nickel in the future)
<cole-h> And I guess I stand corrected -- it's available in 0.6.0
<blaggacao> Don't you think nix/nickel is / will be a better choice for merging?
<cole-h> I haven't been following it, but I don't think the merging implemented there is much different from what we already have?
<blaggacao> I'm not too much into it, but I see the potential for things like associative merge strategies, similar to what kyaml uses in the kubernetes ecosystem. So maybe it's better to stick with cm-native merge semantics.
<blaggacao> alacritty `imports` wouldn't be a big deal, but I feel config merging lies in the CM domain, rather than in the application domain.
<blaggacao> I'll only implement something for alacritty, a more skilled person would need to generalize it for other terminals, if need be in the future.
<blaggacao> Should I move it into CSIu.nix and move alacritty into a subfolder? Like to make it more easily discoverable?
<blaggacao> ` replaceStrings [ "\\\\" ] [ "\\" ] (builtins.toJSON cfg.settings // mkIf cfg.CSIuSupport CSIu );`?
<blaggacao> hmmm.. https://github.com/tweag/nickel/issues/255 - we'll see
<{^_^}> tweag/nickel#255 (by blaggacao, 5 minutes ago, open): Associative Array Merges
o1lo01ol1o has joined #home-manager
o1lo01ol1o has quit [Ping timeout: 256 seconds]
niacdoial has quit [Ping timeout: 260 seconds]
Synthetica has quit [Quit: Connection closed for inactivity]
<{^_^}> nix-community/home-manager#1676 (by blaggacao, 21 seconds ago, open): alacritty: add CSIu support
justanotheruser has joined #home-manager
o1lo01ol1o has joined #home-manager
o1lo01ol1o has quit [Ping timeout: 264 seconds]