I just want to know from you how you (or how you would) pass options to packages you develop with flakes.

I am currently writing a widget bar using Astal and then import the flake in my NixOS flake and use the package.default output in home.packages. I’d like to also style this bar according to my Stylix theme, how do you do something like this?

  • Yash RajOP
    link
    fedilink
    English
    122 days ago

    I am seeing this repo: https://github.com/Jas-SinghFSU/HyprPanel/blob/master/nix/module.nix

    this uses astal to create the said interface but is also configuring the settings like how I want, except it uses json and ts for it where I have scss and lua, otherwise I just can’t wrap my head around how i can translate it to my needs. Maybe I don’t need to edit the files in the build, I could just edit or update the astel.scss using nix as well like how its done there using builtins and other functions, can you help me here, if you’ve got time.

    • @balsoft@lemmy.ml
      link
      fedilink
      English
      214 days ago

      I don’t know anything about astal, and not much about lua, so I’m afraid I can’t help you here.

      • Yash RajOP
        link
        fedilink
        English
        113 days ago

        Its alright! I am kinda trying to figure it out myself. But thankyou for the initial push