https://blue-build.org/ logo
What should I be layering vs using flatpak/brew/di...
# questions
h
I'm making my own image based on Secureblue, and I'm not sure how much I should be layering. Should I pretty much just put as little as I can layered, and anything that can be installed by other methods should be? This is what my dnf module looks like so far. Just my compositor, shell + its optional dependencies, and my terminal. https://cdn.discordapp.com/attachments/1572792663025914046/1572792663181361252/screenshot_2026-11-18_19-55-01.png?ex=6affa8cf&is=6afe574f&hm=0b91630921d11e3997e96b4960839ecd084dfc092d5f387627c8760c0e3832cf&
a
message has been deleted
h
secondly, for my own personal image is there any reason not to put everything i use into the default-flatpaks module?
e
It is always better to prioritise flatpak over other distribution methods unless the program you want to install doesn’t make sense as a flatpak, such as a browser or terminal emulator. Brew’s main advantage over layering in a standard secureblue installation is that you avoid layering packages. But since you’re already layering various packages, there isn’t much of an advantage. Of course, there could be differences in how a package is packaged in homebrew versus how fedora packages it. For example, the fd-find package in fedora is incompatible with hardened_malloc. And don’t bother with distrobox, it’s really bad for simply installing packages.
I’m not sure about this, but it might conflict with secureblue’s flatpak setup. You’d probably be better off using a flatpak .preinstall file
h
i'm viewing distrobox as a last resort for the stuff i can't get anywhere else
e
You can always build those from source using copr and fedora’s servers. That would be far better than using distrobox, since you wouldn’t need to toggle a user namespaces for the container domain. Of course, it does take more time to set up
h
@RoyalOughtness do you know if this will conflict?
b
I would always do whatever the application developers recommend, which is usually on wherever the repository is hosted. If flatpak is officially supported by the developer, then I would choose that as the first method of installation. If they recommend using a native package and it's available using dnf, use that then. Things like cli tools and stuff, you obviously want to use dnf, but gui applications, probably just stick with flatpak, but there are some exceptions to that. Steam is a good example, you should use the native package unless the flatpak is litterally the only option you have. With all this being said, something you should know about Blue build is that it is not layering packages. It uses dnf as the installation method, rpm-ostree is how packages get layered and it's not the same thing. The dnf method is much better, and doesn't suffer from the same issues as package layering with rpm-ostree does.
r
tldr
h
if i put basically every program i want into default-flatpak on my secureblue based image will that conflict with any of secureblues flatpak setup somehow
r
does default-flatpak use system flatpaks
h
it can use either one, i'm doing user per secureblue's recommendation
b
It can use either one if you specify it, by default it's user.
r
depends how the module adds the remote
that's good because the flatpak system helper is uhhh
h
its worth noting secureblue recommends installing steam as a flatpak for sandboxing, i assumed that extended to anything i can get as a flatpak
r
😬
it's marginal
gaming has a lot of security anti-patterns and steam is using an ancient CEF
> you should use the native package isnt it only packaged for ubuntu
like, every distro's steam package like arch's is also third party
b
The steam package on Terra, Negativo17 is pulled from that and packaged as an rpm.
r
those are equally third party to the flatpak
b
So no, it's not official, but neither is the flatpak, and it works better.
r
only in certain edge cases
r
anywayys
h
if thats the case should i just use dnf for steam since it will typically have less problems
r
i wouldnt
but to answer your original question
our flatpak setup is about to be migrated
which will change the answer
here
r
it should be fine but you'll have to test it and see
h
alright
b
To be clear, I'm pretty sure royal is talking about secureblue specifically, which I am not arguing against that at all, cause I don't fucking know, and they definitely know better than I do. I'm saying use the rpm in general in other cases.
h
i'm hoping i can put steam in there too and however it adds the remote will work for unverified stuff since secureblue doesnt have unverified flatpaks ootb
r
it should be yeah
h
and final question, if i'm making my own image is there any security reason to use brew over dnf for installing packages? i think it might be a little better for usability anyway since if i understand correctly any updates and new apps installed through dnf on my image would require a reboot to apply, unlike brew
r
depends on the package but probably not, no
brew is advantageous for security because it makes UKIs viable (where there is no layering, only sysexts)
so, indirectly
h
the majority of what i have learned about desktop linux security has been in like the last 2 weeks so i'm kinda learning as i go here
b
Enable root ssh access.
h
my threat model probably doesnt require any of this but its kinda fun to learn
b
Nothing bad will happen promise.
h
thanks grapheneos discord for sending me down the rabbithole
r
"threat model" means actually drawing and analyzing a diagram btw
it's not a vibe 😛
h
oh alright
r
it's not your fault there are some uh "privacy spaces" lets say that have muddied the terminology (not GOS)
h
i mean the GOS discord is where i have heard it used the way i used it a lot
r
yeah
c
The term "likely risks" might be better