decided to yeet my entire cosmic config into a home manager module and needed a script to do it. Kinda a qd solution but it works
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

we can even add dividers!

+9 -1
+9 -1
src/convert_cosmic.gleam
··· 21 21 <> current_module_path_xdg_config_relative 22 22 <> ")", 23 23 ) 24 + let assert Ok(_) = 25 + simplifile.append( 26 + "./output.nix", 27 + "\n\n" 28 + <> { { "# " <> current_module <> " " } |> string.pad_end(122, "-") } 29 + <> "\n", 30 + ) 31 + 24 32 use items <- result.try(simplifile.read_directory({ current_module_path })) 25 33 26 34 list.map(items, fn(item) { ··· 42 50 // Printie? 43 51 let oui = file_entry <> ".text = " <> qouted_file <> ";" 44 52 // io.println(oui) 45 - let assert Ok(_) = simplifile.append("./output.nix", oui <> "\n\n") 53 + let assert Ok(_) = simplifile.append("./output.nix", oui <> "\n") 46 54 }) 47 55 }) 48 56